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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHPDoc properties #312

Merged
merged 2 commits into from
Nov 14, 2018
Merged

Fix PHPDoc properties #312

merged 2 commits into from
Nov 14, 2018

Conversation

ruudk
Copy link
Contributor

@ruudk ruudk commented Nov 8, 2018

PHPStan doesn't like it:

  292    Access to offset 'results' on an unknown class Picqer\Financials\Exact\SalesEntryLines.
  310    Access to offset 'results' on an unknown class Picqer\Financials\Exact\PurchaseEntryLines.

It would be great if you could run PHPStan on this project. It finds a lot more issues like this and it will improve this library 馃挭

@DannyvdSluijs
Copy link
Contributor

DannyvdSluijs commented Nov 13, 2018

Thanks @ruudk
I've already done quite some work on this but could use all the help. PHPStan is a powerful tool and besides the incorrect phpdoc there are some architectural issues.Didn't get started on them yet as i believe having a complete and correct phpdoc will result in better code due to correct IDE code completion.

Some related pull requests can be found here: https://github.com/picqer/exact-php-client/pulls?q=is%3Apr+author%3ADannyvdSluijs+is%3Aclosed

@ruudk
Copy link
Contributor Author

ruudk commented Nov 13, 2018

Can this be merged?

@DannyvdSluijs
Copy link
Contributor

I'm not the maintainer. Only a heavy user of the package which makes it that I started to help on adding these small fixes. @stephangroen typically seems to do this when there is a few PR's than can be merged and released into a new version.

@stephangroen
Copy link
Member

stephangroen commented Nov 14, 2018

I'll look in to running phpstan for the project. Need to find some time but I will add it to my todo list. I also think it would improve the library.

besides the incorrect phpdoc there are some architectural issues

I want to review the whole library for a next major version. Some things have grown and have gotten a bit ugly, there have been some good comments by users and the architecture in general isn't that great.

@stephangroen stephangroen merged commit 35f0920 into picqer:master Nov 14, 2018
@DannyvdSluijs
Copy link
Contributor

@stephangroen leg me know of you want some help. Ive been using the tool quite some time now. Will take you 10 minutes to get it running using docker.
Or I can provide you the output for you to check.

@ruudk ruudk deleted the patch-1 branch November 14, 2018 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants