Skip to content

Commit

Permalink
added declare(strict_types=1);
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich authored and dg committed Jan 9, 2017
1 parent 55f2167 commit 644f973
Show file tree
Hide file tree
Showing 149 changed files with 304 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Iterators/CachingIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Iterators;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Iterators/Mapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Iterators;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/ArrayHash.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/ArrayList.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Arrays.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/DateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/FileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/IHtmlString.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;


Expand Down
2 changes: 2 additions & 0 deletions src/Utils/ITranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Localization;


Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/ObjectMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Random.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Reflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/SmartObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette;

use Nette\Utils\Callback;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/StaticClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette;


Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Strings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/Validators.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette\Utils;

use Nette;
Expand Down
2 changes: 2 additions & 0 deletions src/Utils/exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/

declare(strict_types=1);

namespace Nette;


Expand Down
2 changes: 2 additions & 0 deletions tests/Iterators/CachingIterator.basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Iterators\CachingIterator basic usage.
*/

declare(strict_types=1);

use Nette\Iterators;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Iterators/CachingIterator.construct.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Iterators\CachingIterator constructor.
*/

declare(strict_types=1);

use Nette\Iterators;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Iterators/CachingIterator.width.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Iterators\CachingIterator width.
*/

declare(strict_types=1);

use Nette\Iterators;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Iterators/Mapper.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Iterators\Mapper
*/

declare(strict_types=1);

use Nette\Iterators;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/ArrayHash.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\ArrayHash basic usage.
*/

declare(strict_types=1);

use Nette\Utils\ArrayHash;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/ArrayList.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\ArrayList basic usage.
*/

declare(strict_types=1);

use Nette\Utils\ArrayList;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.associate().error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::associate()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.associate().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::associate()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Nette\Utils\DateTime;
use Tester\Assert;
Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.every().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::every()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.flatten().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::flatten()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.get().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::get()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.getRef().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::getRef()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.grep().errors.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::grep() errors.
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.grep().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::grep()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.insertBefore().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::insertBefore() & insertAfter()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.isList.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::isList()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.map().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::map()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.normalize.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::searchKey()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.pick().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::pick()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.renameKey().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::renameKey()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Utils/Arrays.searchKey().phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Test: Nette\Utils\Arrays::searchKey()
*/

declare(strict_types=1);

use Nette\Utils\Arrays;
use Tester\Assert;

Expand Down
Loading

0 comments on commit 644f973

Please sign in to comment.