diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6eab9154f..4c7330539 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] fail-fast: false diff --git a/composer.json b/composer.json index 497ddb293..d19c71359 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ } ], "require": { - "php": ">=7.1 <8.2", + "php": ">=7.1 <8.3", "ext-tokenizer": "*", "nette/neon": "^3.3 || ^4.0", "nette/php-generator": "^3.5.4 || ^4.0", diff --git a/readme.md b/readme.md index 642cfc2fd..c17c94269 100644 --- a/readme.md +++ b/readme.md @@ -37,7 +37,7 @@ The recommended way to install is via Composer: composer require nette/di ``` -It requires PHP version 7.1 and supports PHP up to 8.1. +It requires PHP version 7.1 and supports PHP up to 8.2. Usage diff --git a/tests/DI/Compiler.functions.phpt b/tests/DI/Compiler.functions.phpt index b789deded..749ceaa11 100644 --- a/tests/DI/Compiler.functions.phpt +++ b/tests/DI/Compiler.functions.phpt @@ -15,6 +15,9 @@ require __DIR__ . '/../bootstrap.php'; class Service { + public $args; + + public function __construct() { } diff --git a/tests/DI/Compiler.generatedFactory.phpt b/tests/DI/Compiler.generatedFactory.phpt index bc0161e0a..d91b017d5 100644 --- a/tests/DI/Compiler.generatedFactory.phpt +++ b/tests/DI/Compiler.generatedFactory.phpt @@ -25,6 +25,7 @@ interface ILoremFactory class Lorem { public $ipsum; + public $var; public function __construct(Ipsum $ipsum) @@ -56,6 +57,7 @@ class Article public $title; public $method; + public $prop; public function __construct($title) diff --git a/tests/DI/Compiler.services.create.phpt b/tests/DI/Compiler.services.create.phpt index 26a77e850..0bb8c4200 100644 --- a/tests/DI/Compiler.services.create.phpt +++ b/tests/DI/Compiler.services.create.phpt @@ -25,6 +25,10 @@ class Factory class Lorem { + public $arg; + public $foo; + + public function __construct($arg = null) { $this->arg = $arg; @@ -41,6 +45,9 @@ class Lorem class Ipsum { + public $arg; + + public function __construct($arg) { $this->arg = $arg; diff --git a/tests/DI/Compiler.services.setup.phpt b/tests/DI/Compiler.services.setup.phpt index a4d6024f9..b95de0cad 100644 --- a/tests/DI/Compiler.services.setup.phpt +++ b/tests/DI/Compiler.services.setup.phpt @@ -15,6 +15,10 @@ require __DIR__ . '/../bootstrap.php'; class Lorem { + public $test; + public $arr; + + public function test(...$args) { Notes::add(__METHOD__ . ' ' . implode(' ', $args)); @@ -28,6 +32,7 @@ class Ipsum public static $instances; + public $args; public $test; diff --git a/tests/DI/ContainerBuilder.create.rich.phpt b/tests/DI/ContainerBuilder.create.rich.phpt index b26fdb0af..5d749fd38 100644 --- a/tests/DI/ContainerBuilder.create.rich.phpt +++ b/tests/DI/ContainerBuilder.create.rich.phpt @@ -16,6 +16,9 @@ require __DIR__ . '/../bootstrap.php'; class Factory { + public $mark; + + /** @return Obj */ public function create() { @@ -31,6 +34,10 @@ class Factory class Obj { + public $args; + public $mark; + + /** @return Obj */ public function foo(...$args) { diff --git a/tests/DI/files/compiler.services.create.neon b/tests/DI/files/compiler.services.create.neon index dc393fdfb..2b87a94e0 100644 --- a/tests/DI/files/compiler.services.create.neon +++ b/tests/DI/files/compiler.services.create.neon @@ -7,7 +7,7 @@ services: referencedServiceWithSetup: factory: @one setup: - - $x(10) + - $arg(10) serviceAsParam: Ipsum(@one) calledService: @one()