Skip to content

Commit 440705b

Browse files
committed
Replace Override class file for PHP 8 compatibility.
Moved the Override class from src-class to src-compat, updating its attributes for PHP 8. Modified composer.json to reference the new file location. This ensures compatibility with modern PHP versions while maintaining functionality.
1 parent 2d78490 commit 440705b

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
"Ray\\Aop\\": ["src/", "src-php8"],
3333
"Ray\\ServiceLocator\\": ["sl-src/"]
3434
},
35-
"files": ["annotation_loader.php", "src-class/Override.php"]
35+
"files": [
36+
"annotation_loader.php",
37+
"src-compat/Override.php"
38+
]
3639
},
3740
"autoload-dev": {
3841
"psr-4": {

src-class/Override.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

src-compat/Override.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
#[Attribute(\Attribute::TARGET_METHOD)]
6+
final class Override
7+
{
8+
}

0 commit comments

Comments
 (0)