Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #25

Merged
merged 36 commits into from
Dec 9, 2023
Merged

Cleanup #25

merged 36 commits into from
Dec 9, 2023

Conversation

grummbeer
Copy link

@grummbeer grummbeer commented Dec 5, 2023

  • add phpstan
  • add phpstan to workflow
  • enable workflow checks for pull_request
  • add tests with coverage
  • fix skipped test Builds are failing #22 (partially)
  • cleanup
    • php 8 features
    • type hinting
  • no functional changes
  • some tests still missing

@grummbeer grummbeer force-pushed the cleanup branch 5 times, most recently from f8003a7 to e5a338a Compare December 7, 2023 02:48
@grummbeer grummbeer marked this pull request as ready for review December 7, 2023 03:11
@grummbeer
Copy link
Author

grummbeer commented Dec 7, 2023

@amenk add composer.lock?

Please do some real usage tests.

@amenk
Copy link
Member

amenk commented Dec 7, 2023

@amenk add composer.lock?

no sure - https://getcomposer.org/doc/02-libraries.md#lock-file does not have a final recommendation, do you see benefits in adding it?

Please do some real usage tests.

We are using it with the sister project https://github.com/Mestrona/mbank
Probably that needs to be upgraded as well, if I find the time. Then I can test it.

Did you do some tests already? What is your usecase?

@grummbeer
Copy link
Author

composer.lock

OK, i see. No need for it.

I haven't tested all commands yet. I have not made any functional changes, just a cleanup. So everything should behave as before. Your mbank works, only this line needs to be changed to the newer money api getCurrency()->getCode().

https://github.com/Mestrona/mbank/blob/2f175ffb3ebfa0884596f874bb58478b0e213d2f/app/BankTransactionTable.php#L41

My use case is similar to mbank, just with more frontend.

@grummbeer grummbeer changed the title WIP: Cleanup Cleanup Dec 9, 2023
amenk added a commit to Mestrona/mbank that referenced this pull request Dec 9, 2023
@amenk
Copy link
Member

amenk commented Dec 9, 2023

Looks good, I guess I can merge - shall I tag a new release (4.0.0) as well or do you have further plans?

@grummbeer
Copy link
Author

plans

  • some modernizing eg.

    • "preg_match(/simple matching/) > str_contains"
    • "false !== str_pos() > str_contains"
    • "$nullableObject->get() > $nullableObject?->get()" using null-safe-operator
  • bugs

    • SetAppropriateITanModeCommand don't work, unsupported Parameter "--bank" and "--user" should be uniqueId and not userId

Would do this in separate MRs, this one can be merged.

@grummbeer
Copy link
Author

Will not send more commits to this branch :-) Ready to merge from my side.

@amenk amenk merged commit 1fdb337 into Mestrona:master Dec 9, 2023
1 check passed
@grummbeer grummbeer deleted the cleanup branch December 9, 2023 19:49
@grummbeer
Copy link
Author

shall I tag a new release (4.0.0)

From my end, you can do.

There are some things to do

  • Adding "ListITanModesCommand", > Collection of Array (using for GUI "select iTAN Mode")
  • Adding more tests
  • Results should be the same type, not mixed (DomDocument, SimpleXMLElement, Array, String, …)
  • … some others

My time for this is running out, must go ahead with my use case. Will commit here if anything from my own implementation seems stable or practicable.

@amenk
Copy link
Member

amenk commented Dec 11, 2023

Release is tagged

https://github.com/Mestrona/aqbanking-php/releases/tag/4.0.0

Feel free to open issues for the todos,

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants