File tree Expand file tree Collapse file tree 6 files changed +31
-3
lines changed Expand file tree Collapse file tree 6 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ Polyfills are provided for:
68
68
- the ` Date*Exception/Error ` classes introduced in PHP 8.3;
69
69
- the ` SQLite3Exception ` class introduced in PHP 8.3;
70
70
- the ` mb_ucfirst ` and ` mb_lcfirst ` functions introduced in PHP 8.4;
71
+ - the ` Deprecated ` attribute introduced in PHP 8.4;
71
72
72
73
It is strongly recommended to upgrade your PHP version and/or install the missing
73
74
extensions whenever possible. This polyfill should be used only when there is no
Original file line number Diff line number Diff line change 64
64
" src/Intl/Icu/Resources/stubs" ,
65
65
" src/Intl/MessageFormatter/Resources/stubs" ,
66
66
" src/Intl/Normalizer/Resources/stubs" ,
67
+ " src/Php84/Resources/stubs" ,
67
68
" src/Php83/Resources/stubs" ,
68
69
" src/Php82/Resources/stubs" ,
69
70
" src/Php81/Resources/stubs" ,
Original file line number Diff line number Diff line change 16
16
}
17
17
],
18
18
"require" : {
19
- "php" : " >=7.1" ,
20
- "symfony/polyfill-php80" : " ^1.14"
19
+ "php" : " >=7.1"
21
20
},
22
21
"autoload" : {
23
22
"psr-4" : { "Symfony\\ Polyfill\\ Php83\\ " : " " },
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Symfony Polyfill / Php84
4
4
This component provides features added to PHP 8.4 core:
5
5
6
6
- [ ` mb_ucfirst ` and ` mb_lcfirst ` ] ( https://wiki.php.net/rfc/mb_ucfirst )
7
+ - [ ` Deprecated ` ] ( https://wiki.php.net/rfc/deprecated_attribute )
7
8
8
9
More information can be found in the
9
10
[ main Polyfill README] ( https://github.com/symfony/polyfill/blob/main/README.md ) .
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony package.
5
+ *
6
+ * (c) Fabien Potencier <fabien@symfony.com>
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ if (\PHP_VERSION_ID < 80400 ) {
13
+ #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION | Attribute::TARGET_CLASS_CONSTANT )]
14
+ final class Deprecated
15
+ {
16
+ public readonly ?string $ message ;
17
+ public readonly ?string $ since ;
18
+
19
+ public function __construct (?string $ message = null , ?string $ since = null )
20
+ {
21
+ $ this ->message = $ message ;
22
+ $ this ->since = $ since ;
23
+ }
24
+ }
25
+ }
Original file line number Diff line number Diff line change 20
20
},
21
21
"autoload" : {
22
22
"psr-4" : { "Symfony\\ Polyfill\\ Php84\\ " : " " },
23
- "files" : [ " bootstrap.php" ]
23
+ "files" : [ " bootstrap.php" ],
24
+ "classmap" : [ " Resources/stubs" ]
24
25
},
25
26
"minimum-stability" : " dev" ,
26
27
"extra" : {
You can’t perform that action at this time.
0 commit comments