Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,11 @@ parameters:
count: 1
path: src/Altair/Cookie/Collection/CookieCollection.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/Altair/Cookie/Collection/CookieCollection.php

-
message: "#^Class Altair\\\\Cookie\\\\Collection\\\\SetCookieCollection extends generic class Altair\\\\Structure\\\\Map but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Altair/Cookie/Collection/SetCookieCollection.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/Altair/Cookie/Collection/SetCookieCollection.php

-
message: "#^Method Altair\\\\Courier\\\\Contracts\\\\CommandMiddlewareInterface\\:\\:handle\\(\\) has no return type specified\\.$#"
count: 1
Expand All @@ -105,11 +95,6 @@ parameters:
count: 1
path: src/Altair/Courier/Middleware/CommandLockerMiddleware.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/Altair/Courier/Service/InMemoryCommandLocatorService.php

-
message: "#^Method Altair\\\\Courier\\\\Strategy\\\\CommandRunnerMiddlewareStrategy\\:\\:__construct\\(\\) has parameter \\$middlewares with no value type specified in iterable type array\\.$#"
count: 1
Expand All @@ -125,11 +110,6 @@ parameters:
count: 1
path: src/Altair/Courier/Strategy/CommandRunnerMiddlewareStrategy.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/Altair/Courier/Strategy/CommandRunnerMiddlewareStrategy.php

-
message: "#^PHPDoc tag @var for property Altair\\\\Http\\\\Base\\\\Payload\\:\\:\\$settingsCollection with type Altair\\\\Structure\\\\Map\\|null is not subtype of native type Altair\\\\Http\\\\Collection\\\\SettingsCollection\\.$#"
count: 1
Expand Down Expand Up @@ -295,16 +275,6 @@ parameters:
count: 1
path: src/Altair/Session/Handler/PdoSessionHandler.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 10
path: src/Altair/Structure/Map.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/Altair/Structure/Pair.php

-
message: "#^Property Altair\\\\Structure\\\\PriorityNode\\<TValue\\>\\:\\:\\$priority \\(int\\) does not accept null\\.$#"
count: 1
Expand All @@ -315,26 +285,6 @@ parameters:
count: 1
path: src/Altair/Structure/PriorityNode.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/Altair/Structure/PriorityQueue.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 2
path: src/Altair/Structure/Queue.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 7
path: src/Altair/Structure/Set.php

-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 2
path: src/Altair/Structure/Stack.php

-
message: "#^Binary operation \"\\*\\=\" between non\\-empty\\-string and 2 results in an error\\.$#"
count: 1
Expand Down
3 changes: 3 additions & 0 deletions src/Altair/Courier/Service/InMemoryCommandLocatorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
use Altair\Courier\Support\MessageCommandMap;
use Override;

/**
* @phpstan-consistent-constructor
*/
class InMemoryCommandLocatorService implements InMemoryCommandLocatorServiceInterface
{
protected MessageCommandMap $map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Closure;
use Override;

/**
* @phpstan-consistent-constructor
*/
class CommandRunnerMiddlewareStrategy implements CommandRunnerStrategyInterface
{
/**
Expand Down
2 changes: 2 additions & 0 deletions src/Altair/Structure/Map.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
* @implements MapInterface<TKey, TValue>
* @implements IteratorAggregate<TKey, TValue>
* @implements ArrayAccess<TKey, TValue>
*
* @phpstan-consistent-constructor
*/
class Map implements IteratorAggregate, ArrayAccess, MapInterface, CapacityInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Altair/Structure/Pair.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
* @template TValue
*
* @implements PairInterface<TKey, TValue>
*
* @phpstan-consistent-constructor
*/
class Pair implements PairInterface, JsonSerializable, Stringable
{
Expand Down
2 changes: 2 additions & 0 deletions src/Altair/Structure/PriorityQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
*
* @implements CollectionInterface<int, TValue>
* @implements IteratorAggregate<int, TValue>
*
* @phpstan-consistent-constructor
*/
class PriorityQueue implements IteratorAggregate, CollectionInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Altair/Structure/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
* @implements QueueInterface<TValue>
* @implements IteratorAggregate<int, TValue>
* @implements ArrayAccess<int, TValue>
*
* @phpstan-consistent-constructor
*/
class Queue implements IteratorAggregate, ArrayAccess, QueueInterface, CapacityInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Altair/Structure/Set.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
* @implements SetInterface<TValue>
* @implements IteratorAggregate<int, TValue>
* @implements ArrayAccess<int, TValue>
*
* @phpstan-consistent-constructor
*/
class Set implements IteratorAggregate, ArrayAccess, SetInterface, CapacityInterface
{
Expand Down
2 changes: 2 additions & 0 deletions src/Altair/Structure/Stack.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
* @implements StackInterface<TValue>
* @implements IteratorAggregate<int, TValue>
* @implements ArrayAccess<int, TValue>
*
* @phpstan-consistent-constructor
*/
class Stack implements IteratorAggregate, ArrayAccess, StackInterface, CapacityInterface
{
Expand Down
Loading