Skip to content

Commit 857e233

Browse files
committed
composer require leafs/billing --dev -W
1 parent b94245d commit 857e233

2 files changed

Lines changed: 49 additions & 72 deletions

File tree

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"phpstan/phpstan": "^2.1",
5454
"phpstan/extension-installer": "^1.4",
5555
"leafs/leaf": "^4.4",
56-
"league/oauth2-google": "^4.0"
56+
"league/oauth2-google": "^4.0",
57+
"leafs/billing": "^0.2.0"
5758
},
5859
"scripts": {
5960
"alchemy": "./vendor/bin/alchemy setup",

phpstan-baseline.neon

Lines changed: 47 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,6 @@ parameters:
1212
count: 2
1313
path: src/Auth.php
1414

15-
-
16-
rawMessage: Access to constant STATUS_ACTIVE on an unknown class Leaf\Billing\Subscription.
17-
identifier: class.notFound
18-
count: 1
19-
path: src/Auth/User.php
20-
21-
-
22-
rawMessage: Access to constant STATUS_CANCELLED on an unknown class Leaf\Billing\Subscription.
23-
identifier: class.notFound
24-
count: 1
25-
path: src/Auth/User.php
26-
27-
-
28-
rawMessage: Access to constant STATUS_TRIAL on an unknown class Leaf\Billing\Subscription.
29-
identifier: class.notFound
30-
count: 1
31-
path: src/Auth/User.php
32-
33-
-
34-
rawMessage: Function billing not found.
35-
identifier: function.notFound
36-
count: 3
37-
path: src/Auth/User.php
38-
3915
-
4016
rawMessage: 'Function createTableForUsers() has parameter $table with no type specified.'
4117
identifier: missingType.parameter
@@ -60,24 +36,6 @@ parameters:
6036
count: 1
6137
path: tests/Pest.php
6238

63-
-
64-
rawMessage: Access to an undefined property Leaf\Auth\User::$username.
65-
identifier: property.notFound
66-
count: 2
67-
path: tests/login.test.php
68-
69-
-
70-
rawMessage: Access to an undefined property object::$accessToken.
71-
identifier: property.notFound
72-
count: 1
73-
path: tests/login.test.php
74-
75-
-
76-
rawMessage: Access to an undefined property object::$refreshToken.
77-
identifier: property.notFound
78-
count: 1
79-
path: tests/login.test.php
80-
8139
-
8240
rawMessage: 'Call to an undefined method Pest\Expectation|Pest\Support\Extendable::not().'
8341
identifier: method.notFound
@@ -169,16 +127,22 @@ parameters:
169127
path: tests/login.test.php
170128

171129
-
172-
rawMessage: Access to an undefined property Leaf\Auth\User::$password.
173-
identifier: property.notFound
174-
count: 2
175-
path: tests/register.test.php
130+
rawMessage: Cannot access property $accessToken on object|null.
131+
identifier: property.nonObject
132+
count: 1
133+
path: tests/login.test.php
176134

177135
-
178-
rawMessage: Access to an undefined property Leaf\Auth\User::$username.
179-
identifier: property.notFound
136+
rawMessage: Cannot access property $refreshToken on object|null.
137+
identifier: property.nonObject
138+
count: 1
139+
path: tests/login.test.php
140+
141+
-
142+
rawMessage: Cannot access property $username on Leaf\Auth\User|null.
143+
identifier: property.nonObject
180144
count: 2
181-
path: tests/register.test.php
145+
path: tests/login.test.php
182146

183147
-
184148
rawMessage: 'Call to an undefined method Pest\Expectation|Pest\Support\Extendable::not().'
@@ -246,18 +210,24 @@ parameters:
246210
count: 6
247211
path: tests/register.test.php
248212

213+
-
214+
rawMessage: Cannot access property $password on Leaf\Auth\User|null.
215+
identifier: property.nonObject
216+
count: 2
217+
path: tests/register.test.php
218+
219+
-
220+
rawMessage: Cannot access property $username on Leaf\Auth\User|null.
221+
identifier: property.nonObject
222+
count: 2
223+
path: tests/register.test.php
224+
249225
-
250226
rawMessage: 'Undefined variable: $this'
251227
identifier: variable.undefined
252228
count: 1
253229
path: tests/register.test.php
254230

255-
-
256-
rawMessage: Access to an undefined property Leaf\Auth\User::$username.
257-
identifier: property.notFound
258-
count: 6
259-
path: tests/session.test.php
260-
261231
-
262232
rawMessage: 'Call to an undefined method Pest\Expectation|Pest\Support\Extendable::not().'
263233
identifier: method.notFound
@@ -337,10 +307,10 @@ parameters:
337307
path: tests/session.test.php
338308

339309
-
340-
rawMessage: Access to an undefined property Leaf\Auth\User::$username.
341-
identifier: property.notFound
342-
count: 2
343-
path: tests/table.test.php
310+
rawMessage: Cannot access property $username on Leaf\Auth\User|null.
311+
identifier: property.nonObject
312+
count: 6
313+
path: tests/session.test.php
344314

345315
-
346316
rawMessage: 'Call to an undefined method Pest\Expectation|Pest\Support\Extendable::toBe().'
@@ -360,6 +330,12 @@ parameters:
360330
count: 3
361331
path: tests/table.test.php
362332

333+
-
334+
rawMessage: Cannot access property $username on Leaf\Auth\User|null.
335+
identifier: property.nonObject
336+
count: 2
337+
path: tests/table.test.php
338+
363339
-
364340
rawMessage: Function createUsersTable not found.
365341
identifier: function.notFound
@@ -372,12 +348,6 @@ parameters:
372348
count: 5
373349
path: tests/table.test.php
374350

375-
-
376-
rawMessage: Access to an undefined property Leaf\Auth\User::$username.
377-
identifier: property.notFound
378-
count: 2
379-
path: tests/update.test.php
380-
381351
-
382352
rawMessage: 'Call to an undefined method Pest\Expectation|Pest\Support\Extendable::not().'
383353
identifier: method.notFound
@@ -432,18 +402,18 @@ parameters:
432402
count: 1
433403
path: tests/update.test.php
434404

405+
-
406+
rawMessage: Cannot access property $username on Leaf\Auth\User|null.
407+
identifier: property.nonObject
408+
count: 2
409+
path: tests/update.test.php
410+
435411
-
436412
rawMessage: 'Undefined variable: $this'
437413
identifier: variable.undefined
438414
count: 7
439415
path: tests/update.test.php
440416

441-
-
442-
rawMessage: Access to an undefined property Leaf\Auth\User::$username.
443-
identifier: property.notFound
444-
count: 2
445-
path: tests/user.test.php
446-
447417
-
448418
rawMessage: 'Call to an undefined method Pest\Expectation|Pest\Support\Extendable::toBe().'
449419
identifier: method.notFound
@@ -492,6 +462,12 @@ parameters:
492462
count: 2
493463
path: tests/user.test.php
494464

465+
-
466+
rawMessage: Cannot access property $username on Leaf\Auth\User|null.
467+
identifier: property.nonObject
468+
count: 2
469+
path: tests/user.test.php
470+
495471
-
496472
rawMessage: 'Undefined variable: $this'
497473
identifier: variable.undefined

0 commit comments

Comments
 (0)