Skip to content

Commit e841bcc

Browse files
committed
support for PHP 8.2
1 parent 690f741 commit e841bcc

8 files changed

+27
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
10+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
1111

1212
fail-fast: false
1313

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": ">=7.1 <8.2",
18+
"php": ">=7.1 <8.3",
1919
"ext-tokenizer": "*",
2020
"nette/neon": "^3.3 || ^4.0",
2121
"nette/php-generator": "^3.5.4 || ^4.0",

tests/DI/Compiler.functions.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ require __DIR__ . '/../bootstrap.php';
1515

1616
class Service
1717
{
18+
public $args;
19+
20+
1821
public function __construct()
1922
{
2023
}

tests/DI/Compiler.generatedFactory.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ interface ILoremFactory
2525
class Lorem
2626
{
2727
public $ipsum;
28+
public $var;
2829

2930

3031
public function __construct(Ipsum $ipsum)
@@ -56,6 +57,7 @@ class Article
5657

5758
public $title;
5859
public $method;
60+
public $prop;
5961

6062

6163
public function __construct($title)

tests/DI/Compiler.services.create.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ class Factory
2525

2626
class Lorem
2727
{
28+
public $arg;
29+
public $foo;
30+
31+
2832
public function __construct($arg = null)
2933
{
3034
$this->arg = $arg;
@@ -41,6 +45,9 @@ class Lorem
4145

4246
class Ipsum
4347
{
48+
public $arg;
49+
50+
4451
public function __construct($arg)
4552
{
4653
$this->arg = $arg;

tests/DI/Compiler.services.setup.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ require __DIR__ . '/../bootstrap.php';
1515

1616
class Lorem
1717
{
18+
public $test;
19+
public $arr;
20+
21+
1822
public function test(...$args)
1923
{
2024
Notes::add(__METHOD__ . ' ' . implode(' ', $args));
@@ -28,6 +32,7 @@ class Ipsum
2832

2933
public static $instances;
3034

35+
public $args;
3136
public $test;
3237

3338

tests/DI/ContainerBuilder.create.rich.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ require __DIR__ . '/../bootstrap.php';
1616

1717
class Factory
1818
{
19+
public $mark;
20+
21+
1922
/** @return Obj */
2023
public function create()
2124
{
@@ -31,6 +34,10 @@ class Factory
3134

3235
class Obj
3336
{
37+
public $args;
38+
public $mark;
39+
40+
3441
/** @return Obj */
3542
public function foo(...$args)
3643
{

tests/DI/files/compiler.services.create.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
referencedServiceWithSetup:
88
factory: @one
99
setup:
10-
- $x(10)
10+
- $arg(10)
1111

1212
serviceAsParam: Ipsum(@one)
1313
calledService: @one()

0 commit comments

Comments
 (0)