-
Notifications
You must be signed in to change notification settings - Fork 574
Expand file tree
/
Copy pathbug-12639.php
More file actions
42 lines (30 loc) · 785 Bytes
/
bug-12639.php
File metadata and controls
42 lines (30 loc) · 785 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
41
42
<?php declare(strict_types=1);
namespace Bug12639\Database\FieldTypes;
/** @template T */
class ObjectRefT {}
namespace Bug12639\Accounts;
class Account {}
namespace Bug12639\Policy;
if (!defined('Bug12639')) {
define('Bug12639', true);
}
use Bug12639\Database\FieldTypes;
use Bug12639\Accounts\Account;
use function PHPStan\Testing\assertType;
trait BaseAccount
{
/** @var FieldTypes\ObjectRefT<Account> */
protected FieldTypes\ObjectRefT $account;
protected function test(): void
{
assertType('Bug12639\Database\FieldTypes\ObjectRefT<Bug12639\Accounts\Account>', $this->account);
}
}
class StandardAccount
{
use BaseAccount;
public function run(): void
{
assertType('Bug12639\Database\FieldTypes\ObjectRefT<Bug12639\Accounts\Account>', $this->account);
}
}