Skip to content
This repository was archived by the owner on Dec 29, 2020. It is now read-only.

Commit ca3cff9

Browse files
committed
Use strict types.
1 parent 1b55db1 commit ca3cff9

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

bin/phpdoc-to-typehint

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/usr/bin/env php
22
<?php
33

4+
/*
5+
* This file is part of the PHPDoc to Type Hint package.
6+
*
7+
* (c) Kévin Dunglas <[email protected]>
8+
*
9+
* For the full copyright and license information, please view the LICENSE
10+
* file that was distributed with this source code.
11+
*/
12+
13+
declare(strict_types=1);
14+
415
function includeIfExists($file)
516
{
617
if (file_exists($file)) {

src/Application.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* file that was distributed with this source code.
1010
*/
1111

12+
declare(strict_types=1);
13+
1214
namespace Dunglas\PhpDocToTypeHint;
1315

1416
use Symfony\Component\Console\Application as ConsoleApplication;

src/ConvertCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* file that was distributed with this source code.
1010
*/
1111

12+
declare(strict_types=1);
13+
1214
namespace Dunglas\PhpDocToTypeHint;
1315

1416
use phpDocumentor\Reflection\Php\ProjectFactory;

src/Converter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* file that was distributed with this source code.
1010
*/
1111

12+
declare(strict_types=1);
13+
1214
namespace Dunglas\PhpDocToTypeHint;
1315

1416
use phpDocumentor\Reflection\DocBlock;

tests/test.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* file that was distributed with this source code.
1111
*/
1212

13+
declare(strict_types=1);
14+
1315
// Cannot use PHPUnit right now because of this bug: https://github.com/phpDocumentor/Reflection/issues/85
1416

1517
require __DIR__.'/../vendor/autoload.php';

0 commit comments

Comments
 (0)