You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was squashed before being merged into the 2.x branch.
Discussion
----------
[CI] Re-add PHP-CS-Fixer
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Docs? | no <!-- required for new features -->
| Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
<!--
Replace this notice by a description of your feature/bugfix.
This will help reviewers and should be a good start for the documentation.
Additionally (see https://symfony.com/releases):
- Always add tests and ensure they pass.
- For new features, provide some code snippets to help understand usage.
- Features and deprecations must be submitted against branch main.
- Update/add documentation as required (we can help!)
- Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry
- Never break backward compatibility (see https://symfony.com/bc).
-->
Follow #2802, #2074, #2014 and more.
I feel like Fabbot **only runs on modified files** for a given PR, but sometimes it does not really help (e.g.: if you untouched files contain old references to a deleted class).
This behavior is understandable for symfony/symfony, which contains a tons of code and is super active, but that's not the case symfony/ux, we have very less code and less activity.
**EDIT:** Well, I'm still not sure... PHP-CS-Fixer is showing me fixes for `src/LiveComponent/src/Util/TypeHelper.php`, added in #2778, but it was totally ignored by Fabbot... 😫
So, I suggest to re-add PHP-CS-Fixer run in the CI to ensure all files are correctly CS-fixed.
Commits
-------
1ab48b6 [CI] Re-add PHP-CS-Fixer
Copy file name to clipboardExpand all lines: src/Map/src/Polygon.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
finalclass Polygon implements Element
22
22
{
23
23
/**
24
-
* @param array<Point>|array<array<Point>> $points A list of point representing the polygon, or a list of paths (each path is an array of points) representing a polygon with holes.
24
+
* @param array<Point>|array<array<Point>> $points a list of point representing the polygon, or a list of paths (each path is an array of points) representing a polygon with holes
25
25
* @param array<string, mixed> $extra Extra data, can be used by the developer to store additional information and use them later JavaScript side
26
26
*/
27
27
publicfunction__construct(
@@ -76,7 +76,7 @@ public static function fromArray(array $polygon): self
Copy file name to clipboardExpand all lines: src/Toolkit/src/Kit/KitSynchronizer.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -75,11 +75,11 @@ private function synchronizeComponents(Kit $kit): void
75
75
76
76
$meta = null;
77
77
if ($this->filesystem->exists($metaJsonFile = Path::join($file->getPath(), str_replace('.html.twig', '.meta.json', $file->getBasename())))) {
78
-
$metaJson = file_get_contents($metaJsonFile) ?: thrownew \RuntimeException(sprintf('Unable to get contents from file "%s".', $metaJsonFile));
78
+
$metaJson = file_get_contents($metaJsonFile) ?: thrownew \RuntimeException(\sprintf('Unable to get contents from file "%s".', $metaJsonFile));
79
79
try {
80
80
$meta = ComponentMeta::fromJson($metaJson);
81
81
} catch (\Throwable$e) {
82
-
thrownew \RuntimeException(sprintf('Unable to parse component "%s" meta from JSON file "%s".', $componentName, $metaJsonFile), previous: $e);
82
+
thrownew \RuntimeException(\sprintf('Unable to parse component "%s" meta from JSON file "%s".', $componentName, $metaJsonFile), previous: $e);
83
83
}
84
84
}
85
85
@@ -132,7 +132,7 @@ private function resolveComponentDependencies(Kit $kit, Component $component): v
132
132
if (!$component->hasDependency(newPhpPackageDependency($package))) {
133
133
thrownew \RuntimeException(\sprintf('Component "%s" uses "%s" UX Twig component, but the composer package "%s" is not listed as a dependency in meta file.', $component->name, $componentReferenceName, $package));
thrownew \RuntimeException(\sprintf('Component "%s" not found in component "%s" (file "%s")', $componentReferenceName, $component->name, $file->relativePathNameToKit));
0 commit comments