-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpstan_final.txt
More file actions
79 lines (73 loc) · 4.89 KB
/
phpstan_final.txt
File metadata and controls
79 lines (73 loc) · 4.89 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Note: Using configuration file F:\laragon\www\Intent-Framework\phpstan.neon.
------ ----------------------------------------------------------
Line Core\OAuth.php
------ ----------------------------------------------------------
:171 Cannot cast mixed to string.
🪪 cast.string
:202 Parameter #2 $raw of static method
Core\OAuth::normalizeUser() expects array<string, mixed>
, array<mixed, mixed> given.
🪪 argument.type
:213 Method Core\OAuth::normalizeUser() should return
array{id: string, email: string|null, name: string|null,
avatar: string|null, provider: string, raw: array<string
, mixed>} but returns array{id: string, email: string|nu
ll, name: mixed, avatar: mixed, provider: string, raw:
array<string, mixed>}.
🪪 return.type
💡 Offset 'name' (string|null) does not accept type
mixed.
💡 Offset 'avatar' (string|null) does not accept type
mixed.
:234 Cannot access offset 'data' on mixed.
🪪 offsetAccess.nonOffsetAccessible
:234 Cannot access offset 'url' on mixed.
🪪 offsetAccess.nonOffsetAccessible
------ ----------------------------------------------------------
------ ----------------------------------------------------------
Line Core\QueryBuilder.php
------ ----------------------------------------------------------
:365 Cannot cast mixed to int.
🪪 cast.int
:382 PHPDoc tag @return with type int|string is not subtype
of native type string|false.
🪪 return.phpDocType
:450 Method Core\QueryBuilder::insertOrIgnore() never returns
int so it can be removed from the return type.
🪪 return.unusedType
:752 Cannot cast mixed to string.
🪪 cast.string
------ ----------------------------------------------------------
------ ----------------------------------------------------------
Line Core\Request.php
------ ----------------------------------------------------------
:80 Method Core\Request::json() should return array<string,
mixed>|null but returns array<mixed, mixed>|null.
🪪 return.type
------ ----------------------------------------------------------
------ ----------------------------------------------------------
Line Core\Router.php
------ ----------------------------------------------------------
:118 Method Core\Router::getGroupMiddleware() should return
array<int, (callable(): mixed)|string> but returns array
<mixed>.
🪪 return.type
------ ----------------------------------------------------------
-- --------------------------------------------------------------
Error
-- --------------------------------------------------------------
Ignored error pattern #^Call to an undefined static method
Core\\(DB|Route|Auth|Request|Response|Session|Config|Validat
or|Cache|Log|Upload|Paginator|Migration|Event|RateLimiter|Se
curityHeaders|OAuth|Registry)::.*\(\)\.$# was not matched in
reported errors.
Ignored error pattern #^Access to an undefined property
Core\\(DB|Route|Auth|Request|Response|Session|Config|Validat
or|Cache|Log)::.*\.$# was not matched in reported errors.
Ignored error pattern #^Call to an undefined method
Core\\QueryBuilder::.*\(\)\.$# was not matched in reported
errors.
Ignored error pattern #^Call to an undefined method
Core\\Query::.*\(\)\.$# was not matched in reported errors.
-- --------------------------------------------------------------
[ERROR] Found 15 errors