Skip to content

Various CS fixes #61064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025
Merged

Various CS fixes #61064

merged 1 commit into from
Jul 8, 2025

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 7.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

Running latest php-cs-fixer

@nicolas-grekas nicolas-grekas merged commit 120056b into symfony:7.4 Jul 8, 2025
9 of 11 checks passed
@nicolas-grekas nicolas-grekas deleted the cs branch July 8, 2025 09:36
@@ -1462,7 +1462,7 @@ public function registerAttributeForAutoconfiguration(string $attributeClass, ca
*
* @param ?string $target
*/
public function registerAliasForArgument(string $id, string $type, ?string $name = null/*, ?string $target = null */): Alias
public function registerAliasForArgument(string $id, string $type, ?string $name = null/* , ?string $target = null */): Alias
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks weird but is ok

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

php-cs-fixer has a rule requiring whitespace around the comment text, which is why this is added. This rule makes sense for normal comments. For such comments containing future code changes, it might be a bit weird but that's still fine and we'll fix the coding standards anyway when replacing the comment with code (we already had a trailing space that won't be present in the replaced code either)

@@ -113,7 +113,7 @@ private function processDefinition(ContainerBuilder $container, string $id, Defi
$definition = substr_replace($definition, 'Child', 44, 0);
}
$definition = unserialize($definition);
/** @var ChildDefinition $definition */
/* @var ChildDefinition $definition */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks weird. I think this should be solved by putting the @var phpdoc on the assignment statement instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy