FLEXIcontent / flexicontent-cck

Advanced content management for Joomla
http://www.flexicontent.org
82 stars 53 forks source link

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated #1151

Closed micker closed 10 months ago

micker commented 11 months ago

Need to update this for php8.1 https://github.com/FLEXIcontent/flexicontent-cck/blob/65a65ec0e7e00848aeef5399d4e77f9194783a7e/site/flexicontent.php#L281

VanShane commented 10 months ago

easy to fix, just cast second parameter of preg_match to string. e.g.: preg_match("/Itemid=([0-9]+)/", (string) $pathway_arr[0]->link, $matches)

micker commented 10 months ago

adding here on master https://github.com/FLEXIcontent/flexicontent-cck/commit/b9663b5df251d083c2781bfcc361e2923003e621 thanks @VanShane