forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbug-10820.php
More file actions
40 lines (34 loc) · 671 Bytes
/
bug-10820.php
File metadata and controls
40 lines (34 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php declare(strict_types = 1);
namespace Bug10820;
abstract class Value
{
public function assertString(): SassString
{
throw new \Exception('this is not a string');
}
}
final class SassString extends Value
{
public function assertString(): SassString
{
return $this;
}
}
class NonFinalBase
{
protected function doSomething(): int
{
throw new \Exception('not implemented');
}
private function doPrivate(): int
{
throw new \Exception('not implemented');
}
}
final class FinalClass
{
public function doSomething(): int
{
throw new \Exception('not implemented');
}
}