Jump to content

Is processwire core's code base PHP7 friendly ?


adrianmak
 Share

Recommended Posts

I looked at all greppable features in the removal document and grepped through PW 2.6.9 and any modules I happened to have on my current project and the only results I got was:

Assignment of new by reference
 =&
found in:

wire\core\FieldSelectorInfo.php
wire\core\ImageSizer.php
wire\core\Modules.php
wire\core\Wire.php
wire\modules\LanguageSupport\ProcessLanguage.module
wire\modules\Markup\MarkupHTMLPurifier\htmlpurifier\HTMLPurifier.standalone.php
wire\modules\Markup\MarkupHTMLPurifier\htmlpurifier\standalone\HTMLPurifier\ConfigSchema\ValidatorAtom.php
wire\modules\Markup\MarkupHTMLPurifier\htmlpurifier\standalone\HTMLPurifier\Printer\HTMLDefinition.php
wire\modules\Process\ProcessPageEditImageSelect\ProcessPageEditImageSelect.module
wire\modules\Textformatter\TextformatterMarkdownExtra\markdown.php
wire\modules\Textformatter\TextformatterSmartypants\smartypants.php

A non-greppable removal that caught my attention is:

Scoped calls of non-static methods from incompatible $this context

Link to comment
Share on other sites

  • 1 month later...

https://github.com/Alexia/php7mar
 

PHP 7 MAR, or just "php7mar", is a command line utility to generate reports on existing PHP 5 code to assist developers in porting their code quickly to PHP 7. It will run against invididual files or entire project folders. Reports contain line numbers, issues noted, and suggested fixes along with documentation links.

  • Like 2
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...