Skip to content

Commit 3dd0405

Browse files
committed
classes & members marked as final (BC break)
1 parent a7c7217 commit 3dd0405

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

src/PhpGenerator/ClassType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @property Method[] $methods
2020
* @property Property[] $properties
2121
*/
22-
class ClassType
22+
final class ClassType
2323
{
2424
use Nette\SmartObject;
2525
use Traits\CommentAware;

src/PhpGenerator/Closure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @property string $body
1919
*/
20-
class Closure
20+
final class Closure
2121
{
2222
use Nette\SmartObject;
2323
use Traits\FunctionLike;

src/PhpGenerator/Constant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Class constant.
1717
*/
18-
class Constant
18+
final class Constant
1919
{
2020
use Nette\SmartObject;
2121
use Traits\NameAware;

src/PhpGenerator/Factory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Creates a representation based on reflection.
1717
*/
18-
class Factory
18+
final class Factory
1919
{
2020
use Nette\SmartObject;
2121

src/PhpGenerator/GlobalFunction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @property string $body
1919
*/
20-
class GlobalFunction
20+
final class GlobalFunction
2121
{
2222
use Nette\SmartObject;
2323
use Traits\FunctionLike;

src/PhpGenerator/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* PHP code generator utils.
1717
*/
18-
class Helpers
18+
final class Helpers
1919
{
2020
use Nette\StaticClass;
2121

src/PhpGenerator/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @property string|NULL $body
1919
*/
20-
class Method
20+
final class Method
2121
{
2222
use Nette\SmartObject;
2323
use Traits\FunctionLike;

src/PhpGenerator/Parameter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @property mixed $defaultValue
1919
*/
20-
class Parameter
20+
final class Parameter
2121
{
2222
use Nette\SmartObject;
2323
use Traits\NameAware;

src/PhpGenerator/PhpFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* - doc comments
2222
* - one or more namespaces
2323
*/
24-
class PhpFile
24+
final class PhpFile
2525
{
2626
use Nette\SmartObject;
2727
use Traits\CommentAware;

src/PhpGenerator/PhpLiteral.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* PHP literal value.
1515
*/
16-
class PhpLiteral
16+
final class PhpLiteral
1717
{
1818
/** @var string */
1919
private $value;

0 commit comments

Comments
 (0)