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

Fixed deprecation warnings #407

Closed
wants to merge 1 commit into from
Closed

Fixed deprecation warnings #407

wants to merge 1 commit into from

Conversation

pkruithof
Copy link
Contributor

Fixes #389, and also warnings from phpunit.

I also added a psr/log dependency, as it's being used in the Loader class.

@theofidry
Copy link
Member

Thanks for the work @pkruithof!

I also added a psr/log dependency, as it's being used in the Loader class.

Could you remove that part? Logger is an optional dependency and the library works fine without it :)

@pkruithof
Copy link
Contributor Author

Done.

/**
* @param string $plural
*
* @return string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can return null if no result

@pkruithof
Copy link
Contributor Author

I'll apply your other feedback tomorrow when I have more time.

// cache the singularize method
$this->singularizer = [$class, $method];

break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case a return would be more clear IMO

@theofidry
Copy link
Member

Alright, a last change and it's ready to go :)

@theofidry
Copy link
Member

Closed via 10674cb, thanks a lot for the work @pkruithof :)

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