Skip to content

Commit 24258a0

Browse files
authored
Merge pull request #14 from ray-di/remove-doctrine-annotations
Remove Doctrine annotations in favor of PHP 8 attributes
2 parents c60ede3 + 2153150 commit 24258a0

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ jobs:
99
ci:
1010
uses: ray-di/.github/.github/workflows/continuous-integration.yml@v1
1111
with:
12-
old_stable: '["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]'
13-
current_stable: 8.4
12+
old_stable: '["8.0", "8.1", "8.2", "8.3", "8.4"]'
13+
current_stable: 8.5

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ build
1111
vendor/
1212
composer.phar
1313
composer.lock
14+
.phpunit.cache
15+
.phpunit.result.cache

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-2024 Akihito Koriyama
3+
Copyright (c) 2015-2025 Akihito Koriyama
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

composer.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22
"name": "ray/aura-session-module",
33
"description":"Aura Session module for Ray.Di",
44
"keywords":[
5-
"Ray.Di",
6-
"aura",
75
"session"
86
],
97
"require": {
10-
"php": "^7.2 || ^8.0",
11-
"ray/di": "^2.5.3",
8+
"php": "^8.0",
9+
"ray/di": "^2.14",
1210
"aura/session": "^4.0",
1311
"ircmaxell/random-lib": "^1.1"
1412
},
1513
"require-dev": {
16-
"phpunit/phpunit": "^8.5.29 || ^9"
14+
"phpunit/phpunit": "^9.6"
1715
},
18-
"license": "MIT",
16+
"license": "MIT",
1917
"autoload":{
2018
"psr-4":{
2119
"Ray\\AuraSessionModule\\": "src/"

phpunit.xml.dist

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
5-
bootstrap="vendor/autoload.php">
6-
<testsuites>
7-
<testsuite name="Ray.AuraSessionModule test suite" >
8-
<directory>tests</directory>
9-
</testsuite>
10-
</testsuites>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
cacheResultFile=".phpunit.cache/test-results"
6+
executionOrder="depends,defects"
7+
beStrictAboutOutputDuringTests="true"
8+
beStrictAboutTodoAnnotatedTests="true"
9+
failOnRisky="true"
10+
failOnWarning="true"
11+
verbose="true">
12+
<testsuites>
13+
<testsuite name="Ray.AuraSessionModule test suite">
14+
<directory>tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<coverage processUncoveredFiles="true">
18+
<include>
19+
<directory suffix=".php">src</directory>
20+
</include>
21+
</coverage>
1122
</phpunit>

src/Annotation/Cookie.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
use Attribute;
88
use Ray\Di\Di\Qualifier;
99

10-
/**
11-
* @Annotation
12-
* @Qualifier
13-
*/
1410
#[Attribute, Qualifier]
1511
final class Cookie
1612
{

src/Annotation/DeleteCookie.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
use Attribute;
88
use Ray\Di\Di\Qualifier;
99

10-
/**
11-
* @Annotation
12-
* @Qualifier
13-
*/
1410
#[Attribute, Qualifier]
1511
final class DeleteCookie
1612
{

src/AuraSessionInject.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ trait AuraSessionInject
1414
/** @var Session */
1515
protected $session;
1616

17-
/**
18-
* @\Ray\Di\Di\Inject
19-
*/
2017
public function setSession(Session $session)
2118
{
2219
$this->session = $session;

0 commit comments

Comments
 (0)