Mark Guid\Guid and Nonstandard\Uuid classes as final

This commit is contained in:
Ben Ramsey
2020-02-21 12:30:46 -06:00
parent ad75532dc8
commit bfde8d3130
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
PHP, so it should be named `Integer` for consistency with other types in this
library. When using it, a class alias prevents static analysis from
complaining.
* Mark `Guid\Guid` and `Nonstandard\Uuid` classes as `final`.
### Deprecated
+1 -1
View File
@@ -34,7 +34,7 @@ use Ramsey\Uuid\UuidInterface;
*
* @psalm-immutable
*/
class Guid extends Uuid implements UuidInterface
final class Guid extends Uuid implements UuidInterface
{
public function __construct(
Fields $fields,
+1 -1
View File
@@ -25,7 +25,7 @@ use Ramsey\Uuid\UuidInterface;
*
* @psalm-immutable
*/
class Uuid extends BaseUuid implements UuidInterface
final class Uuid extends BaseUuid implements UuidInterface
{
public function __construct(
Fields $fields,