Skip to content

Commit 321e46a

Browse files
committed
declare(strict_types=1);
1 parent 85fb7aa commit 321e46a

File tree

106 files changed

+212
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+212
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
php: 7.1
3030
install:
3131
# Install Nette Code Checker
32-
- travis_retry composer create-project nette/code-checker temp/code-checker ~2 --no-progress
32+
- travis_retry composer create-project nette/code-checker temp/code-checker ^3.0 --no-progress
3333
# Install Nette Coding Standard
3434
- travis_retry composer create-project nette/coding-standard temp/coding-standard --no-progress
3535
script:
36-
- php temp/code-checker/src/code-checker.php --short-arrays
36+
- php temp/code-checker/src/code-checker.php --strict-types -i "tests/*/fixtures*" -i tests/Runner/find-tests
3737
- php temp/coding-standard/ecs check src tests --config tests/coding-standard.neon;
3838

3939

src/CodeCoverage/Collector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester\CodeCoverage;
911

1012

src/CodeCoverage/Generators/AbstractGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester\CodeCoverage\Generators;
911

1012

src/CodeCoverage/Generators/CloverXMLGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester\CodeCoverage\Generators;
911

1012
use DOMDocument;

src/CodeCoverage/Generators/HtmlGenerator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester\CodeCoverage\Generators;
911

1012

src/CodeCoverage/PhpParser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester\CodeCoverage;
911

1012

src/Framework/Assert.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester;
911

1012

src/Framework/AssertException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester;
911

1012

src/Framework/DataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester;
911

1012

src/Framework/DomQuery.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2009 David Grudl (https://davidgrudl.com)
66
*/
77

8+
declare(strict_types=1);
9+
810
namespace Tester;
911

1012

0 commit comments

Comments
 (0)