From 58aa54d956daf54b16fcca3d59677747030de6c5 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Thu, 3 Nov 2022 12:09:46 +0100 Subject: [PATCH] CS fix --- Resources/stubs/Attribute.php | 9 +++++++++ Resources/stubs/PhpToken.php | 11 ++++++++++- Resources/stubs/Stringable.php | 9 +++++++++ Resources/stubs/UnhandledMatchError.php | 9 +++++++++ Resources/stubs/ValueError.php | 9 +++++++++ 5 files changed, 46 insertions(+), 1 deletion(-) diff --git a/Resources/stubs/Attribute.php b/Resources/stubs/Attribute.php index 7ea6d27..2b95542 100644 --- a/Resources/stubs/Attribute.php +++ b/Resources/stubs/Attribute.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + #[Attribute(Attribute::TARGET_CLASS)] final class Attribute { diff --git a/Resources/stubs/PhpToken.php b/Resources/stubs/PhpToken.php index 72f1081..bd1212f 100644 --- a/Resources/stubs/PhpToken.php +++ b/Resources/stubs/PhpToken.php @@ -1,6 +1,15 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +if (\PHP_VERSION_ID < 80000 && extension_loaded('tokenizer')) { class PhpToken extends Symfony\Polyfill\Php80\PhpToken { } diff --git a/Resources/stubs/Stringable.php b/Resources/stubs/Stringable.php index 77e037c..7c62d75 100644 --- a/Resources/stubs/Stringable.php +++ b/Resources/stubs/Stringable.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + if (\PHP_VERSION_ID < 80000) { interface Stringable { diff --git a/Resources/stubs/UnhandledMatchError.php b/Resources/stubs/UnhandledMatchError.php index 37937cb..01c6c6c 100644 --- a/Resources/stubs/UnhandledMatchError.php +++ b/Resources/stubs/UnhandledMatchError.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + if (\PHP_VERSION_ID < 80000) { class UnhandledMatchError extends Error { diff --git a/Resources/stubs/ValueError.php b/Resources/stubs/ValueError.php index a3a9b88..783dbc2 100644 --- a/Resources/stubs/ValueError.php +++ b/Resources/stubs/ValueError.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + if (\PHP_VERSION_ID < 80000) { class ValueError extends Error {