Hi,

We are getting the following error when running PHPCompatibility for 7.2

FILE: ...les/contrib/views_php/plugins/views/views_php_plugin_wrapper.inc
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
48 | ERROR | "$this" can no longer be used in a plain function or
| | method since PHP 7.1.
----------------------------------------------------------------------

Are we having any plans to fix this?

I have attached the image file of error.

Thanks and regards,
Mayank Patel

Comments

patelmayank7552 created an issue. See original summary.

shital.mahajan’s picture

Title: PHP 7.0 Compatibility » "$this" can no longer be used in a plain function or | | method since PHP 7.1.
shital.mahajan’s picture

Title: "$this" can no longer be used in a plain function or | | method since PHP 7.1. » "$this" can no longer be used in a plain function or method since PHP 7.1.
shital.mahajan’s picture

Title: "$this" can no longer be used in a plain function or method since PHP 7.1. » PHP 7.0 Compatibility
avpaderno’s picture

Issue tags: -PHP 7.2 PHP 7 +PHP 7.2
liam morland’s picture

Title: PHP 7.0 Compatibility » [7.x-1.x] "$this" can no longer be used in a plain function or a static method
Version: 7.x-1.0-alpha3 » 7.x-1.x-dev
liam morland’s picture

Status: Active » Needs review
StatusFileSize
new593 bytes

This patch just removes __callStatic(), which never worked anyway; see #3052613-8: [7.x-2.x] "$this" can no longer be used in a plain function or a static method, comments 8 and 9 for details.

  • Liam Morland committed f82ace0 on 7.x-1.x
    Issue #3038544: Remove non-functional views_php_plugin_wrapper::...
liam morland’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.