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

Laravel 10.x Compatibility #24

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

laravel-shift
Copy link
Contributor

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 9.x.

Before merging, you need to:

  • Checkout the l10-compatibility branch
  • Review all comments for additional changes
  • Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

@laravel-shift
Copy link
Contributor Author

⚠️ Shift detected a dependency for the laravel/framework. Unless you have a special requirement for depending on the entire Laravel framework, it's recommended to add dependencies for the specific illuminate packages instead.

@laravel-shift
Copy link
Contributor Author

⚗️ Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.

To do so, temporarily add Shift's fork to the repositories property of your composer.json:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/json-api.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:

{
    "require": {
        "timacdonald/json-api": "dev-l10-compatibility",
    }
}

Finally, run: composer update

@jeffwhansen
Copy link

Do we have an eta on laravel 10.x support? Thanks for the awesome package.

@lloricode
Copy link

+1

@lloricode
Copy link

can not use this while using Model::shouldBeStrict(),

since this is the fix on v1.0.0-beta.3

return Collection::make(property_exists($this, 'attributes') ? $this->attributes : [])

@timacdonald
Copy link
Owner

Hey folks, 10.0 will drop soon. Just need some time to review.

@timacdonald
Copy link
Owner

timacdonald commented Feb 20, 2023

@lloricode interested to know how that breaks things. Can you paste me the error message? It is my understanding that property_exists doesn't invoke anything via magic getters.

@lloricode
Copy link

@lloricode interested to know how that breaks things. Can you paste me the error message? It is my understanding that property_exists doesn't invoke anything via magic getters.

Hi, it seems this PR is not updated with your branch, that is why even installing this using laravel-shift repo, will still does not works while using Model::shouldBeStrict()

@lloricode
Copy link

Screenshot_2023-02-20_14-10-37

@timacdonald

@timacdonald
Copy link
Owner

Ah, gotcha. Yea, the branch needs to be rebased.

@lloricode
Copy link

Ah, gotcha. Yea, the branch needs to be rebased.

thank you

@timacdonald timacdonald merged commit def3e63 into timacdonald:main Feb 20, 2023
@timacdonald
Copy link
Owner

This has been tagged.

If you are coming from a 0.x version, please see the upgrade guide.

@jeffwhansen
Copy link

jeffwhansen commented Feb 20, 2023 via email

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.

None yet

4 participants