Skip to content

Commit 9144962

Browse files
minor symfony#52798 Fix legacy class palceholder definitions for static analysis (ausi)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- Fix legacy class palceholder definitions for static analysis | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT In symfony#50392 the `UriSigner` class was moved from HttpKernel to HttpFoundation. The empty definition `class UriSigner {}` causes many issues with static analysis tools like PHPStan. As this code is wrapped in an `if (false)` changing it to `class UriSigner extends HttpFoundationUriSigner` should not cause any behavior change while fixing most static analysis issues. Commits ------- 0f230fe Fix legacy class palceholder definitions for static analysis
2 parents 0e93fc7 + 0f230fe commit 9144962

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class_exists(AttributeRouteControllerLoader::class);
1919
/**
2020
* @deprecated since Symfony 6.4, to be removed in 7.0, use {@link AttributeRouteControllerLoader} instead
2121
*/
22-
class AnnotatedRouteControllerLoader
22+
class AnnotatedRouteControllerLoader extends AttributeRouteControllerLoader
2323
{
2424
}
2525
}

src/Symfony/Component/HttpKernel/Debug/FileLinkFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class_alias(ErrorHandlerFileLinkFormatter::class, FileLinkFormatter::class);
2525
/**
2626
* @deprecated since Symfony 6.4, use FileLinkFormatter from the ErrorHandler component instead
2727
*/
28-
class FileLinkFormatter
28+
class FileLinkFormatter extends ErrorHandlerFileLinkFormatter
2929
{
3030
}
3131
}

src/Symfony/Component/HttpKernel/UriSigner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class_exists(HttpFoundationUriSigner::class);
2121
/**
2222
* @deprecated since Symfony 6.4, to be removed in 7.0, use {@link HttpFoundationUriSigner} instead
2323
*/
24-
class UriSigner
24+
class UriSigner extends HttpFoundationUriSigner
2525
{
2626
}
2727
}

src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class_exists(AttributeClassLoader::class);
1919
/**
2020
* @deprecated since Symfony 6.4, to be removed in 7.0, use {@link AttributeClassLoader} instead
2121
*/
22-
class AnnotationClassLoader
22+
abstract class AnnotationClassLoader extends AttributeClassLoader
2323
{
2424
}
2525
}

src/Symfony/Component/Routing/Loader/AnnotationDirectoryLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class_exists(AttributeDirectoryLoader::class);
1919
/**
2020
* @deprecated since Symfony 6.4, to be removed in 7.0, use {@link AttributeDirectoryLoader} instead
2121
*/
22-
class AnnotationDirectoryLoader
22+
class AnnotationDirectoryLoader extends AttributeDirectoryLoader
2323
{
2424
}
2525
}

src/Symfony/Component/Routing/Loader/AnnotationFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class_exists(AttributeFileLoader::class);
1919
/**
2020
* @deprecated since Symfony 6.4, to be removed in 7.0, use {@link AttributeFileLoader} instead
2121
*/
22-
class AnnotationFileLoader
22+
class AnnotationFileLoader extends AttributeFileLoader
2323
{
2424
}
2525
}

src/Symfony/Component/Serializer/Mapping/Loader/AnnotationLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class_exists(AttributeLoader::class);
1919
/**
2020
* @deprecated since Symfony 6.4, to be removed in 7.0, use {@link AttributeLoader} instead
2121
*/
22-
class AnnotationLoader
22+
class AnnotationLoader extends AttributeLoader
2323
{
2424
}
2525
}

0 commit comments

Comments
 (0)