Skip to content

Commit

Permalink
Added @phpstan-require-implements constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wright <[email protected]>
  • Loading branch information
betterthanclay committed Aug 22, 2024
1 parent 8fcfa7a commit f6703c0
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Added @phpstan-require-implements constraints
* Made PHP8.1 minimum version

## v0.1.2 (2023-09-26)
Expand Down
3 changes: 3 additions & 0 deletions src/Manifest/DisableableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Tightrope\Manifest;

/**
* @phpstan-require-implements Disableable
*/
trait DisableableTrait
{
protected bool $disabled = false;
Expand Down
3 changes: 3 additions & 0 deletions src/Manifest/ImmutableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Tightrope\Manifest;

/**
* @phpstan-require-implements Immutable
*/
trait ImmutableTrait
{
protected bool $immutable = false;
Expand Down
3 changes: 3 additions & 0 deletions src/Manifest/NullableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Tightrope\Manifest;

/**
* @phpstan-require-implements Nullable
*/
trait NullableTrait
{
protected bool $nullable = false;
Expand Down
3 changes: 3 additions & 0 deletions src/Manifest/ReadOnlyableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Tightrope\Manifest;

/**
* @phpstan-require-implements ReadOnlyable
*/
trait ReadOnlyableTrait
{
protected bool $readOnly = false;
Expand Down
3 changes: 3 additions & 0 deletions src/Manifest/ReadableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Tightrope\Manifest;

/**
* @phpstan-require-implements Readable
*/
trait ReadableTrait
{
protected bool $readable = false;
Expand Down
3 changes: 3 additions & 0 deletions src/Manifest/RequirableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Tightrope\Manifest;

/**
* @phpstan-require-implements Requirable
*/
trait RequirableTrait
{
protected bool $required = false;
Expand Down
3 changes: 3 additions & 0 deletions src/Manifest/WritableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace DecodeLabs\Tightrope\Manifest;

/**
* @phpstan-require-implements Writable
*/
trait WritableTrait
{
protected bool $writable = false;
Expand Down

0 comments on commit f6703c0

Please sign in to comment.