Skip to content

Commit 506b10a

Browse files
committed
Update
1 parent a5cc214 commit 506b10a

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/Imitation/PHPJava/Extended/_Object.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,17 @@ public function clone(): _Object
2727
return clone $this;
2828
}
2929

30-
31-
public function equals($object): bool
30+
public function equals($a = null): bool
3231
{
33-
return $this === $object;
32+
return $this === $a;
3433
}
3534

3635
public function getClass(): self
3736
{
3837
return $this;
3938
}
4039

41-
public function hashCode(): int
40+
public function hashCode()
4241
{
4342
if (version_compare(PHP_VERSION, '7.2', '<')) {
4443
return crc32(spl_object_hash($this));

src/Kernel/Mnemonics/_invokestatic.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public function execute(): void
2727
}
2828
krsort($arguments);
2929
$return = null;
30+
31+
$methodName = "static_{$methodName}";
32+
3033
switch ($resourceType) {
3134
case ClassResolver::RESOLVED_TYPE_CLASS:
3235
/**

0 commit comments

Comments
 (0)