Skip to content

Commit 34dba88

Browse files
committed
readme: compatible with PHP 7.3
1 parent 935de15 commit 34dba88

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nette/php-generator",
3-
"description": "🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.2 features.",
3+
"description": "🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 7.3 features.",
44
"keywords": ["nette", "php", "code", "scaffolding"],
55
"homepage": "https://nette.org",
66
"license": ["BSD-3-Clause", "GPL-2.0", "GPL-3.0"],

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ The recommended way to install is via Composer:
2727
composer require nette/php-generator
2828
```
2929

30-
- v2.6 requires PHP 5.6 or newer (is compatible up to 7.2)
31-
- v3.0 requires PHP 7.0 or newer (is compatible up to 7.2)
32-
- v3.1 requires PHP 7.1 or newer (is compatible up to 7.2)
30+
- v3.1 requires PHP 7.1 or newer (is compatible up to 7.3)
31+
- v3.0 requires PHP 7.0 or newer (is compatible up to 7.3)
32+
- v2.6 requires PHP 5.6 or newer (is compatible up to 7.3)
3333

3434

3535
Usage
@@ -118,7 +118,7 @@ It results in:
118118

119119
If the property, constant, method or parameter already exist, it will be overwritten.
120120

121-
PHP Generator supports all new PHP 7.2 features:
121+
PHP Generator supports all new PHP 7.3 features:
122122

123123
```php
124124
$class = new Nette\PhpGenerator\ClassType('Demo');

tests/PhpGenerator/Helpers.dump().phpt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,12 @@ Assert::same(
124124
"new DateTimeImmutable('2016-06-22 20:52:43.123400', new DateTimeZone('Europe/Prague'))",
125125
Helpers::dump(new DateTimeImmutable('2016-06-22 20:52:43.1234', new DateTimeZone('Europe/Prague')))
126126
);
127-
Assert::match(
128-
"Nette\\PhpGenerator\\Helpers::createObject('TestDateTime', %A%)",
127+
same(
128+
"Nette\\PhpGenerator\\Helpers::createObject('TestDateTime', [
129+
'date' => '2016-06-22 20:52:43.123400',
130+
'timezone_type' => 3,
131+
'timezone' => 'Europe/Prague',
132+
])",
129133
Helpers::dump(new TestDateTime('2016-06-22 20:52:43.1234', new DateTimeZone('Europe/Prague')))
130134
);
131135

0 commit comments

Comments
 (0)