Browse Source

Fix compilation error

ns
J. King 6 years ago
parent
commit
e4d1e65ded
  1. 4
      lib/Stack.php

4
lib/Stack.php

@ -43,7 +43,7 @@ class Stack implements \ArrayAccess {
return array_pop($this->storage);
}
public static function search(mixed $needle): int {
public function search(mixed $needle): int {
if (!$needle) {
return false;
}
@ -87,4 +87,4 @@ class Stack implements \ArrayAccess {
default: return null;
}
}
}
}

Loading…
Cancel
Save