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

SS4/PHP compatibility tweaks #13

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

dizzystuff
Copy link
Contributor

  1. Updating composer package type from 'silverstripe-module' to 'silverstripe-vendormodule' so that the package is installed to /vendor directory rather than project root.

  2. Updating ExternalURLField::setValue method arguments, to resolve php E_STRICT notice declaration of methods should be compatible with parent methods in php.

  3. Applying injection pattern per silverstripe-framework's DBField classes, to resolve Uncaught SilverStripe\Core\Injector\InjectorNotFoundException: ReflectionException: Class ExternalURL does not exist in /framework/src/Core/Injector/InjectionCreator.php:17

@dizzystuff
Copy link
Contributor Author

Apologies, have added the vendor-plugin dependency (required with the package type change to silverstripe-vendormodule).

Have also removed PHP 5.5 from the .travis.yml, given that SS4 only supports >=5.6/7.x.

@robbieaverill
Copy link
Contributor

Hey! #17 has implemented the Travis and $data argument changes here, would you mind rebasing this PR? Sorry for the delay in reviewing

@jonom
Copy link

jonom commented Apr 21, 2020

@dizzystuff I've rebased here, feel free to use it or I can open a new PR if you like.

@purplespider
Copy link

Would it be possible to have these merged? 🙂

@jonom jonom mentioned this pull request Jun 26, 2020
@jonom
Copy link

jonom commented Jun 26, 2020

I've opened a PR with the rebased changes.

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.

4 participants