nemiah / phpFinTS

PHP library to communicate with FinTS/HBCI servers
MIT License
131 stars 40 forks source link

Add option to GetStatementOfAccount::create() #378

Closed nemiah closed 2 years ago

nemiah commented 2 years ago

…to include unbooked transactions again

nemiah commented 2 years ago

@Philipp91 weißt du, was sein Problem is?

Philipp91 commented 2 years ago

https://memegenerator.net/instance/86375445

nemiah commented 2 years ago

Also das ist ja mal ein Spießrutenlauf :angry: Weißt du, was noch sein Problem ist?

Philipp91 commented 2 years ago

Ich versuche mal mein Glück: https://github.com/nemiah/phpFinTS/pull/381

Ich glaube in diesem Log Output:

The following tabs were detected:
+++ b/Samples/statementOfAccount.php
@@ -19,9 +19,9 @@ if ($getSepaAccounts->needsTan()) {
@@ -35,6 +35,7 @@ foreach ($soa->getStatements() as $statement) {
+       echo "Booked      : " . ($transaction->getBooked() ? "true" : "false") . PHP_EOL;
+++ b/lib/Fhp/Action/GetStatementOfAccount.php
@@ -40,6 +40,8 @@ class GetStatementOfAccount extends PaginateableAction
@@ -64,7 +66,7 @@ class GetStatementOfAccount extends PaginateableAction
@@ -75,6 +77,7 @@ class GetStatementOfAccount extends PaginateableAction
@@ -187,6 +190,9 @@ class GetStatementOfAccount extends PaginateableAction
+++ b/lib/Fhp/Segment/KAZ/HIKAZ.php
@@ -12,4 +12,7 @@ interface HIKAZ extends SegmentInterface
+++ b/lib/Fhp/Segment/KAZ/HIKAZv4.php
@@ -26,4 +26,9 @@ class HIKAZv4 extends BaseSegment implements HIKAZ

... muss man Zeilen mit +++ und @@ ignorieren, denn die dienen nur der Orientierung und weisen nicht unbedingt auf einen Tab hin. Aber alle anderen Zeilen (in dem Fall also nur die eine mit Booked) enthalten noch Tabs.

nemiah commented 2 years ago

Hmm, was will er mir damit sagen? 1) phpFinTS/lib/Fhp/Action/GetStatementOfAccount.php (braces)

Philipp91 commented 2 years ago

Weiß ich nicht, aber composer cs-fix sollte es beheben.

nemiah commented 2 years ago

Ja, hätte ich schonmal gemacht, aber

PHP needs to be a minimum version of PHP 5.6.0 and maximum version of PHP 8.0.*.
Current PHP version: 8.1.8.
To ignore this requirement please set `PHP_CS_FIXER_IGNORE_ENV`.
If you use PHP version higher than supported, you may experience code modified in a wrong way.
Philipp91 commented 2 years ago

Ich glaube, bei mir geht's mit PHP 8.1. Vielleicht composer update um die neueste Version (3.9.5) zu installieren? (Siehe auch php-cs-fixer -vvv)

nemiah commented 2 years ago

Wow, verrückter :hankey: !