Skip to content

Commit

Permalink
Fix phpstan for simple.php example
Browse files Browse the repository at this point in the history
  • Loading branch information
johanwilfer committed Aug 10, 2024
1 parent b472531 commit 31bf608
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 12 additions & 5 deletions examples/simple.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,28 @@
->setCompanyName('My company')
// add a verification series
->addVerificationSeries(new VerificationSeries())
// add two accounts
->addAccount((new Account(1511))->setName('Kundfordringar'))
->addAccount((new Account(3741))->setName('Öresutjämning'))
;

// add two accounts
$account1511 = (new Account(1511))->setName('Kundfordringar');
$account3741 = (new Account(3741))->setName('Öresutjämning');
$company
->addAccount($account1511)
->addAccount($account3741)
;



// add a verification with two transactions
$verification = (new Verification('591000490'))->setDate('20150105')
->addTransaction(
(new Transaction())
->setAccount($company->getAccount(1511))
->setAccount($account1511)
->setAmount(-0.24)
)
->addTransaction(
(new Transaction())
->setAccount($company->getAccount(3741))
->setAccount($account3741)
->setAmount(0.24)
)
;
Expand Down
3 changes: 1 addition & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ parameters:
- tests/bootstrap.php
paths:
- src
# FIXME! Cleanup example dir and enable phpstan for that as well
#- examples
- examples

disallowedSuperglobals:
-
Expand Down

0 comments on commit 31bf608

Please sign in to comment.