Debian Codegraph @

vendor/symfony/polyfill-php84/Resources/stubs/Deprecated.php

raw
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <[email protected]>
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 < 80100) {
13 #[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION | Attribute::TARGET_CLASS_CONSTANT)]
14 final class Deprecated
15 {
16 /**
17 * @readonly
18 */
19 public ?string $message;
20
21 /**
22 * @readonly
23 */
24 public ?string $since;
25
26 public function __construct(?string $message = null, ?string $since = null)
27 {
28 $this->message = $message;
29 $this->since = $since;
30 }
31 }
32 } elseif (\PHP_VERSION_ID < 80400) {
33 require dirname(__DIR__).'/Deprecated.php';
34 }