I keep getting this error message when I try to push new Content types.
I think the problem are these two lines of code:

$minor_version = explode('-', $version[1]);
if ((int)$minor_version < 11) {

explode() returns an array and (int)$minor_version results in the value "1".
I'm not familiar with the potential formats for minor versions.
But the following change allows me to progress:

$minor_version = explode('-', $version[1]);
if ((int)$minor_version[0] < 11) {

Comments

gdd’s picture

Status: Active » Closed (fixed)

I have committed a fix for this, as well as moving this code into hook_requirements() which is where it belonged in the first place.