Skip to content

Commit bfa9b0a

Browse files
committed
Use strict_types in every class.
1 parent d96bb9e commit bfa9b0a

23 files changed

+25
-19
lines changed

src/ArgumentEvaluator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace HJerichen\ProphecyPHP;
44

src/Exception/FunctionProphecyNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace HJerichen\ProphecyPHP\Exception;
44

src/FunctionCallDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace HJerichen\ProphecyPHP;
44

src/FunctionDelegation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22
/** @noinspection PhpInconsistentReturnPointsInspection */
3+
declare(strict_types=1);
34

45
namespace HJerichen\ProphecyPHP;
56

src/FunctionProphecy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace HJerichen\ProphecyPHP;
44

@@ -45,7 +45,7 @@ public function getFunctionName(): string
4545

4646
public function scoreArguments(array $arguments): int
4747
{
48-
return $this->argumentEvaluator->scoreArguments($arguments);
48+
return $this->argumentEvaluator->scoreArguments($arguments) ?: 0;
4949
}
5050

5151
/** @return mixed */

src/FunctionProphecyStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace HJerichen\ProphecyPHP;
44

src/FunctionRevealer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace HJerichen\ProphecyPHP;
44

src/NamespaceProphecy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace HJerichen\ProphecyPHP;
44

src/PHPBuiltInFunctions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* @noinspection SpellCheckingInspection
44
* @noinspection PhpMissingParamTypeInspection
55
*/
6+
declare(strict_types=1);
67

78
namespace HJerichen\ProphecyPHP;
89

src/PHPProphet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace HJerichen\ProphecyPHP;
44

0 commit comments

Comments
 (0)