Inspectopedia 2024.3 Help

Passing 'E_USER_ERROR' to 'trigger_error()' is deprecated since PHP 8.4

Reports passing a non-empty string as the $enclosure parameter of the CSV-related methods and functions:

  • SplFileObject::setCsvControl()

  • SplFileObject::fputcsv()

  • SplFileObject::fgetcsv()

  • fputcsv()

  • fgetcsv()

  • str_getcsv().

Passing of a non-empty string as the $enclosure parameter is deprecated since PHP 8.4.

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

PhpDeprecatedPassingNonEmptyEnclosureToCsvFunctionInspection
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | PHP | General

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.3, PhpStorm 2024.3, Qodana for JVM 2024.3, Qodana for PHP 2024.3,

Can be installed with plugin:

PHP, 243.23126

Last modified: 03 December 2024