Skip to content

SS4/PHP compatibility tweaks - #13

Open
dizzystuff wants to merge 14 commits into
burnbright:masterfrom
fromholdio:ss4-compat-tweaks
Open

dizzystuff wants to merge 14 commits into
burnbright:masterfrom
fromholdio:ss4-compat-tweaks

Conversation

@dizzystuff

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

jonom commented Apr 21, 2020

Copy link
Copy Markdown

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

@purplespider

Copy link
Copy Markdown

Would it be possible to have these merged? 🙂

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

jonom commented Jun 26, 2020

Copy link
Copy Markdown

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