Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/Php84/Resources/stubs/Deprecated.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,27 @@
* file that was distributed with this source code.
*/

if (\PHP_VERSION_ID < 80400) {
if (\PHP_VERSION_ID < 80100) {
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION | Attribute::TARGET_CLASS_CONSTANT)]
final class Deprecated
{
/**
* @readonly
*/
public ?string $message;

/**
* @readonly
*/
public ?string $since;

public function __construct(?string $message = null, ?string $since = null)
{
$this->message = $message;
$this->since = $since;
}
}
} elseif (\PHP_VERSION_ID < 80400) {
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_FUNCTION | Attribute::TARGET_CLASS_CONSTANT)]
final class Deprecated
{
Expand Down
Loading