File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 88use \Smuuf \Primi \Helpers \Common ;
99use \Smuuf \Primi \Colors ;
1010use \Smuuf \Primi \Interpreter ;
11- use \Smuuf \Primi \Context ;
11+ use \Smuuf \Primi \IContext ;
1212use \Smuuf \Primi \IReadlineDriver ;
1313
1414class 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: " ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments