Skip to content

Commit

Permalink
Finalize storages
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Feb 6, 2022
1 parent 7b8dc99 commit 958d1ca
Show file tree
Hide file tree
Showing 52 changed files with 52 additions and 52 deletions.
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/Any.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class Any extends Assertion
final class Any extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/ArrayKeyDoesNotExist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class ArrayKeyDoesNotExist extends Assertion
final class ArrayKeyDoesNotExist extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/ArrayKeyExists.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class ArrayKeyExists extends Assertion
final class ArrayKeyExists extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/DoesNotHaveAtLeastCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class DoesNotHaveAtLeastCount extends Assertion
final class DoesNotHaveAtLeastCount extends Assertion
{
/** @var positive-int */
public $count;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/DoesNotHaveExactCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class DoesNotHaveExactCount extends Assertion
final class DoesNotHaveExactCount extends Assertion
{
/** @var positive-int */
public $count;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/DoesNotHaveMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class DoesNotHaveMethod extends Assertion
final class DoesNotHaveMethod extends Assertion
{
public string $method;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/Empty_.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class Empty_ extends Assertion
final class Empty_ extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/Falsy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class Falsy extends Assertion
final class Falsy extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/HasArrayKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use UnexpectedValueException;

class HasArrayKey extends Assertion
final class HasArrayKey extends Assertion
{
public $key;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/HasAtLeastCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class HasAtLeastCount extends Assertion
final class HasAtLeastCount extends Assertion
{
/** @var positive-int */
public $count;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/HasExactCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class HasExactCount extends Assertion
final class HasExactCount extends Assertion
{
/** @var positive-int */
public $count;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/HasIntOrStringArrayAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use UnexpectedValueException;

class HasIntOrStringArrayAccess extends Assertion
final class HasIntOrStringArrayAccess extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/HasMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class HasMethod extends Assertion
final class HasMethod extends Assertion
{
public string $method;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/HasStringArrayAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use UnexpectedValueException;

class HasStringArrayAccess extends Assertion
final class HasStringArrayAccess extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/InArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Union;

class InArray extends Assertion
final class InArray extends Assertion
{
public Union $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsAClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Atomic;

class IsAClass extends Assertion
final class IsAClass extends Assertion
{
/** @var Atomic\TTemplateParamClass|Atomic\TNamedObject */
public Atomic $type;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsClassEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsClassEqual extends Assertion
final class IsClassEqual extends Assertion
{
public string $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsClassNotEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsClassNotEqual extends Assertion
final class IsClassNotEqual extends Assertion
{
public string $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsCountable.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsCountable extends Assertion
final class IsCountable extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsEqualIsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsEqualIsset extends Assertion
final class IsEqualIsset extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsGreaterThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsGreaterThan extends Assertion
final class IsGreaterThan extends Assertion
{
public int $value;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsGreaterThanOrEqualTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsGreaterThanOrEqualTo extends Assertion
final class IsGreaterThanOrEqualTo extends Assertion
{
public int $value;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsIdentical.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Atomic;

class IsIdentical extends Assertion
final class IsIdentical extends Assertion
{
public Atomic $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsIsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsIsset extends Assertion
final class IsIsset extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsLessThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsLessThan extends Assertion
final class IsLessThan extends Assertion
{
public int $value;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsLessThanOrEqualTo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsLessThanOrEqualTo extends Assertion
final class IsLessThanOrEqualTo extends Assertion
{
public int $value;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsLooselyEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Atomic;

class IsLooselyEqual extends Assertion
final class IsLooselyEqual extends Assertion
{
public Atomic $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsNotAClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Atomic;

class IsNotAClass extends Assertion
final class IsNotAClass extends Assertion
{
/** @var Atomic\TTemplateParamClass|Atomic\TNamedObject */
public Atomic $type;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsNotCountable.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsNotCountable extends Assertion
final class IsNotCountable extends Assertion
{
public $is_negatable;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsNotIdentical.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Atomic;

class IsNotIdentical extends Assertion
final class IsNotIdentical extends Assertion
{
public Atomic $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsNotIsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class IsNotIsset extends Assertion
final class IsNotIsset extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsNotLooselyEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Atomic;

class IsNotLooselyEqual extends Assertion
final class IsNotLooselyEqual extends Assertion
{
public Atomic $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsNotType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Atomic;

class IsNotType extends Assertion
final class IsNotType extends Assertion
{
public Atomic $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/IsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Atomic;

class IsType extends Assertion
final class IsType extends Assertion
{
public Atomic $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/NestedAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

use const JSON_THROW_ON_ERROR;

class NestedAssertions extends Assertion
final class NestedAssertions extends Assertion
{
/** @var array<string, list<list<Assertion>>> */
public array $assertions;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/NonEmpty.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class NonEmpty extends Assertion
final class NonEmpty extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/NonEmptyCountable.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class NonEmptyCountable extends Assertion
final class NonEmptyCountable extends Assertion
{
public $is_negatable;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/NotInArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Psalm\Storage\Assertion;
use Psalm\Type\Union;

class NotInArray extends Assertion
final class NotInArray extends Assertion
{
public Union $type;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/NotNestedAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

use const JSON_THROW_ON_ERROR;

class NotNestedAssertions extends Assertion
final class NotNestedAssertions extends Assertion
{
/** @var array<string, list<list<Assertion>>> */
public array $assertions;
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/NotNonEmptyCountable.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class NotNonEmptyCountable extends Assertion
final class NotNonEmptyCountable extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/Assertion/Truthy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\Storage\Assertion;

class Truthy extends Assertion
final class Truthy extends Assertion
{
/** @psalm-mutation-free */
public function getNegation(): Assertion
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/AttributeArg.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Psalm\Internal\Scanner\UnresolvedConstantComponent;
use Psalm\Type\Union;

class AttributeArg
final class AttributeArg
{
/**
* @var ?string
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/AttributeStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Psalm\CodeLocation;

class AttributeStorage
final class AttributeStorage
{
/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Storage/ClassConstantStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* @psalm-suppress PossiblyUnusedProperty
*/
class ClassConstantStorage
final class ClassConstantStorage
{
use CustomMetadataTrait;

Expand Down
Loading

0 comments on commit 958d1ca

Please sign in to comment.