Closed bobbingwide closed 1 year ago
This fix may also work for problems noted when parsing WooCommerce 3.5.2
Processing classref: ActionScheduler_InvalidActionException::,includes/libraries/action-scheduler/classes/ActionScheduler_InvalidActionException.php
Processing API: ActionScheduler_InvalidActionException::from_decoding_args, includes/libraries/action-scheduler/classes/ActionScheduler_InvalidActionException.php, woocommerce, plugin
API: ActionScheduler_InvalidActionException::from_decoding_args
Processing: from_decoding_args,ActionScheduler_InvalidActionException::from_decoding_args,includes/libraries/action-scheduler/classes/ActionScheduler_InvalidActionException.php
Fatal error: Cannot use "static" when no class scope is active in /tmp/oikscloaugdqXA on line 8
Problem occurred with EDD, processing Carbon::instance,includes/libraries/Carbon.php Temporary file was:
<?php //instance
function oiksc_dummy_function_10(DateTime $dt)
{
if ($dt instanceof static) {
return clone $dt;
}
return new Ttatic($dt->format('Y-m-d H:i:s.u'), $dt->getTimezone());
}
Changing the static to Ttatic once again resolved the problem.
Released in v1.41.2
When parsing Yoast SEO v9.4 the routine failed with the following messages.
This is the same sort of problem as #8.
The temporary file contained
Workaround
Fiddle the code temporarily. Change the source file, replacing
static
withttatic
. Note: There may be other cases wherereturn new self()
is used.Proposed solution
tbc