Debian Codegraph @

vendor/symfony/polyfill-php84/Resources/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 < 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 }