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 {