Skip to content

explode() - string required, int passed #301

Open
@NamelessCoder

Description

@NamelessCoder

Bug Report

Prerequisites

  • Can you reproduce the problem on TYPO3 v9.5 LTS
  • Can you reproduce the problem on TYPO3 v10.4 LTS
  • Can you reproduce the problem on PHP 8.x
  • Did you perform a cursory search to see if your bug or feature is already reported?

Description

GeneralUtility::intExplode is called from CategoryRepository with $this->settings['persistence']['storagePid'] as argument, but this value is an integer on TYPO3v12 due to the new TS parser. On PHP 8.x this causes an error because explode() no longer silently accepts integers as input.

Also happens in:

  • PostRepository::getStoragePidsFromTypoScript

Steps to Reproduce

  1. Install the extension
  2. Insert the "list" plugin on a page
  3. Load the page in FE

Expected behavior: Obviously, no exceptions thrown.

Actual behavior: Exception thrown.

Versions

  - Locking t3g/blog (12.0.2)

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions