MIGX icon indicating copy to clipboard operation
MIGX copied to clipboard

php8 compatibility

Open catsmeatman opened this issue 3 years ago • 2 comments

After update to php8.

Deprecated: Required parameter $config follows optional parameter $resource_id in /core/components/migx/model/migx/migx.class.php:1677

Deprecated: Required parameter $criteria follows optional parameter $tvFilters in /core/components/migx/model/migx/migx.class.php:2110

catsmeatman avatar Nov 30 '20 10:11 catsmeatman

A similar problem. Moreover, there was no problem on the nightly build of modx-2.8.3 dev-20210524. After the update to 2.8.3-pl appeared again.

Lord64 avatar May 28 '21 21:05 Lord64

This is still an issue in MigX v3.0.0-alpha5. Line numbers are different this time tho:

Required parameter $config follows optional parameter $resource_id in /core/components/migx/model/migx/migx.class.php on line 1763
Required parameter $criteria follows optional parameter $tvFilters in /core/components/migx/model/migx/migx.class.php on line 2199

Actually the issue is with the signature of these methods:

function checkForConnectedResource($resource_id = false, &$config) {
    //...
}

function tvFilters($tvFilters = '', &$criteria) {
    //...
}

BenceSzalai avatar May 08 '22 18:05 BenceSzalai

Observes this, still is actual, MIGX 3.0.0-alpha5, MODX 3.0.2-pl

Required parameter $config follows optional parameter $resource_id in /core/components/migx/model/migx/migx.class.php on line 1763 Required parameter $criteria follows optional parameter $tvFilters in /core/components/migx/model/migx/migx.class.php on line 2199

ant-tar avatar Dec 26 '22 11:12 ant-tar

MIGX 3.0.0-alpha5, MODX 3.0.3-pl php v8.0, v8.1, v8.2

Deprecated: Required parameter $config follows optional parameter $resource_id in /sites/site.dev/core/components/migx/model/migx/migx.class.php on line 1763

Deprecated: Required parameter $criteria follows optional parameter $tvFilters in /sites/site.dev/core/components/migx/model/migx/migx.class.php on line 2199

dmitriy71n avatar Aug 25 '23 16:08 dmitriy71n

this should have been fixed with d16c4797d9896906e2a176b94f917a34fef90ed2 and 39dc2f51d5a90d93727a40a911470cab45ed0bea

and allready be implemented since 3.0.0-beta1

Bruno17 avatar Aug 26 '23 07:08 Bruno17

Thank you. I have an old package from the repository.

сб, 26 авг. 2023 г. в 10:39, Bruno17 @.***>:

Closed #361 https://github.com/Bruno17/MIGX/issues/361 as completed.

— Reply to this email directly, view it on GitHub https://github.com/Bruno17/MIGX/issues/361#event-10198875385, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCETEDF43ZV7MHVEXQHTBD3XXGR45ANCNFSM4UHMVAHQ . You are receiving this because you commented.Message ID: @.***>

dmitriy71n avatar Aug 26 '23 07:08 dmitriy71n