Skip to content

Commit

Permalink
refactor: add declare strict_types to all classes in ./src
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyvdSluijs committed Oct 8, 2024
1 parent f0b0226 commit c74658f
Show file tree
Hide file tree
Showing 47 changed files with 93 additions and 34 deletions.
34 changes: 0 additions & 34 deletions .php-cs-fixer.dist.php

This file was deleted.

2 changes: 2 additions & 0 deletions src/JsonSchema/ConstraintError.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema;

use JsonSchema\Exception\InvalidArgumentException;
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/BaseConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/CollectionConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/ConstConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/Constraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/ConstraintInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/EnumConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/Factory.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/FormatConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/NumberConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/ObjectConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/SchemaConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/StringConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema\Constraints\TypeCheck;

class LooseTypeCheck implements TypeCheckInterface
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema\Constraints\TypeCheck;

class StrictTypeCheck implements TypeCheckInterface
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema\Constraints\TypeCheck;

interface TypeCheckInterface
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/TypeConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Constraints/UndefinedConstraint.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Entity/JsonPointer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Enum.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema;

abstract class Enum extends \MabeEnum\Enum
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema\Exception;

interface ExceptionInterface
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/InvalidConfigException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/InvalidSchemaException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/InvalidSchemaMediaTypeException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/InvalidSourceUriException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/JsonDecodingException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/ResourceNotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/UnresolvableJsonPointerException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/UriResolverException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Exception/ValidationException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Iterator/ObjectIterator.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Rfc3339.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema;

class Rfc3339
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/SchemaStorage.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema;

use JsonSchema\Constraints\BaseConstraint;
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/SchemaStorageInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema;

interface SchemaStorageInterface
Expand Down
3 changes: 3 additions & 0 deletions src/JsonSchema/Uri/Retrievers/AbstractRetriever.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

declare(strict_types=1);

/**
* JsonSchema
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Uri/Retrievers/Curl.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Uri/Retrievers/FileGetContents.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Uri/Retrievers/PredefinedArray.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace JsonSchema\Uri\Retrievers;

use JsonSchema\Validator;
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Uri/UriResolver.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/Uri/UriRetriever.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/UriResolverInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
2 changes: 2 additions & 0 deletions src/JsonSchema/UriRetrieverInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
* This file is part of the JsonSchema package.
*
Expand Down
Loading

0 comments on commit c74658f

Please sign in to comment.