Skip to content

Commit 739de57

Browse files
committed
deprecated magic properties (BC break)
1 parent 90424c0 commit 739de57

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"require": {
1818
"php": ">=8.0 <8.2",
19-
"nette/utils": "^3.2 || ^4.0"
19+
"nette/utils": "^3.2.7 || ^4.0"
2020
},
2121
"require-dev": {
2222
"nette/tester": "^2.4",

src/PhpGenerator/ClassType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
/**
1616
* Class/Interface/Trait/Enum description.
1717
*
18-
* @property Method[] $methods
19-
* @property Property[] $properties
18+
* @property-deprecated Method[] $methods
19+
* @property-deprecated Property[] $properties
2020
*/
2121
final class ClassType
2222
{

src/PhpGenerator/Closure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Closure.
1717
*
18-
* @property string $body
18+
* @property-deprecated string $body
1919
*/
2020
final class Closure
2121
{

src/PhpGenerator/GlobalFunction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Global function.
1717
*
18-
* @property string $body
18+
* @property-deprecated string $body
1919
*/
2020
final class GlobalFunction
2121
{

src/PhpGenerator/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Class method.
1717
*
18-
* @property string|null $body
18+
* @property-deprecated string|null $body
1919
*/
2020
final class Method
2121
{

src/PhpGenerator/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* Function/Method parameter description.
1818
*
19-
* @property mixed $defaultValue
19+
* @property-deprecated mixed $defaultValue
2020
*/
2121
class Parameter
2222
{

src/PhpGenerator/Property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* Class property description.
1818
*
19-
* @property mixed $value
19+
* @property-deprecated mixed $value
2020
*/
2121
final class Property
2222
{

0 commit comments

Comments
 (0)