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

Define missing properties #2

Merged
merged 5 commits into from
Dec 29, 2023
Merged

Define missing properties #2

merged 5 commits into from
Dec 29, 2023

Conversation

danjohnson95
Copy link
Contributor

When using this library on newer versions of PHP, we get the following error:

Undefined property: LinearApi\Client::$access

This PR fixes that issue by defining the properties in the class. It's backwards compatible with older versions.

PHP 8.2 and above allows you to strictly type the properties, but I've avoided doing that here because the package doesn't specify a requirement of PHP 8.2 and above.

@mustafakucuk mustafakucuk merged commit 9b668ac into mustafakucuk:main Dec 29, 2023
@mustafakucuk
Copy link
Owner

Thanks for contribution.

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