File tree Expand file tree Collapse file tree 4 files changed +71
-71
lines changed
test/unit/Adapter/Driver/TestAsset Expand file tree Collapse file tree 4 files changed +71
-71
lines changed Original file line number Diff line number Diff line change 18
18
"config" : {
19
19
"sort-packages" : true ,
20
20
"platform" : {
21
- "php" : " 7.3 .99"
21
+ "php" : " 7.4 .99"
22
22
},
23
23
"allow-plugins" : {
24
24
"dealerdirect/phpcodesniffer-composer-installer" : true
31
31
}
32
32
},
33
33
"require" : {
34
- "php" : " ^7.3 || ~8.0.0 || ~8.1.0" ,
34
+ "php" : " ^7.4 || ~8.0.0 || ~8.1.0" ,
35
35
"laminas/laminas-stdlib" : " ^3.7.1"
36
36
},
37
37
"require-dev" : {
38
- "laminas/laminas-coding-standard" : " ~ 2.4.0" ,
38
+ "laminas/laminas-coding-standard" : " ^ 2.4.0" ,
39
39
"laminas/laminas-eventmanager" : " ^3.4.0" ,
40
- "laminas/laminas-hydrator" : " ^3.2 || ^ 4.3" ,
40
+ "laminas/laminas-hydrator" : " ^4.3" ,
41
41
"laminas/laminas-servicemanager" : " ^3.7.0" ,
42
42
"phpunit/phpunit" : " ^9.5.19"
43
43
},
Original file line number Diff line number Diff line change 17
17
<file >test</file >
18
18
19
19
<!-- Include all rules from Laminas Coding Standard -->
20
- <rule ref =" LaminasCodingStandard" />
20
+ <rule ref =" LaminasCodingStandard" >
21
+ <!--
22
+ declare(strict_types=1) is too risky for a security-only component,
23
+ and should only be reconsidered once this package receives new feature work.
24
+ -->
25
+ <exclude name =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing" />
26
+ </rule >
21
27
22
28
<rule ref =" PSR1.Files.SideEffects" >
23
29
<exclude-pattern >*/test/unit/Adapter/Driver/IbmDb2/StatementTest.php</exclude-pattern >
Original file line number Diff line number Diff line change 3
3
namespace LaminasTest \Db \Adapter \Driver \TestAsset ;
4
4
5
5
use PDO ;
6
+ use ReturnTypeWillChange ;
6
7
7
8
/**
8
9
* Stub class
@@ -13,14 +14,12 @@ public function __construct()
13
14
{
14
15
}
15
16
16
- /** @return bool */
17
- public function beginTransaction ()
17
+ public function beginTransaction (): bool
18
18
{
19
19
return true ;
20
20
}
21
21
22
- /** @return bool */
23
- public function commit ()
22
+ public function commit (): bool
24
23
{
25
24
return true ;
26
25
}
@@ -29,13 +28,13 @@ public function commit()
29
28
* @param string $attribute
30
29
* @return null
31
30
*/
31
+ #[ReturnTypeWillChange]
32
32
public function getAttribute ($ attribute )
33
33
{
34
34
return null ;
35
35
}
36
36
37
- /** @return bool */
38
- public function rollBack ()
37
+ public function rollBack (): bool
39
38
{
40
39
return true ;
41
40
}
You can’t perform that action at this time.
0 commit comments