Skip to content

Commit 17f48f9

Browse files
committed
Fixes based on phpstan.
1 parent c04d4a7 commit 17f48f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Repl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use \Smuuf\Primi\Helpers\Common;
99
use \Smuuf\Primi\Colors;
1010
use \Smuuf\Primi\Interpreter;
11-
use \Smuuf\Primi\Context;
11+
use \Smuuf\Primi\IContext;
1212
use \Smuuf\Primi\IReadlineDriver;
1313

1414
class Repl extends \Smuuf\Primi\StrictObject {
@@ -123,7 +123,7 @@ private static function formatType(Value $value) {
123123

124124
}
125125

126-
private function printContext(Context $c): void {
126+
private function printContext(IContext $c): void {
127127

128128
foreach ($c->getVariables() as $name => $value) {
129129
echo "$name: ";

src/extensions/psl/CastingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static function to_string(Value $value): StringValue {
2929
public static function to_regex(Value $value): RegexValue {
3030

3131
// Allow regexes to be casted to regex.
32-
if ($value instanceof Regex) {
32+
if ($value instanceof RegexValue) {
3333
return $value;
3434
}
3535

0 commit comments

Comments
 (0)