Glossary · E-commerce
Deprecation
- Area
- E-commerce
- Related
- EOL, Software release, Regression, PHPStan
A deprecation is an announcement that a feature will be removed in a future version of a piece of software; until then, the feature can still be used.
PHP
PHP
PHP is a widely used, general-purpose, open-source scripting language that is especially suited to web development; the name is a recursive acronym for 'PHP: Hypertext Preprocessor'. reports deprecated code through E_DEPRECATED notices. The PHP manual describes them as run-time notices which, if enabled, warn about code that will not work in future versions. Since PHP 8.4, developers can also mark their own functions as deprecated with the #[\Deprecated] attribute. Calling such a function then raises the corresponding notice, E_USER_DEPRECATED.
Among the features PHP 8.4 deprecates are implicitly nullable parameter types. Parameters are the named inputs of a function. If a parameter has null as its default value, it silently accepts null, even where its declared type does not allow null.
The Semantic Versioning FAQ says that before functionality is removed in a new major release (one that raises the first part of the version number), at least one minor release (one that raises the second) should contain the deprecation. Users can then move smoothly to the new API API An API (application programming interface) is a defined set of functions and rules that lets one piece of software use the features or data of another system or service. Read in the glossary → .
In a running Shopware 5 Shopware Shopware is e-commerce software from shopware AG in Schöppingen, Germany; the vendor says its current product, Shopware 6, is a complete redevelopment of Shopware 5. Read in the glossary → shop, deprecation notices are harmless at first, because they are not errors. If a plugin Plugin A plugin is an add-on that extends software such as a shop system with additional features and can be installed separately from it. Read in the glossary → treats every such notice as an error, however, a single one of them can abort execution. Ahead of a PHP upgrade, we therefore go through the deprecation notices in the shop's error log to see where changes are needed.
See also
-
EOL
EOL (end of life) is the point at which a vendor or project stops supporting a software version, so that users may be exposed to unpatched security vulnerabilities.
Cross-cutting
-
Software release
A software release is a published, deployable version of a piece of software, made available under a fixed version number for download and installation.
E-commerce
-
Regression
A regression is a defect or loss of quality in software caused by a change; regression tests look for such defects in the parts that were not changed.
E-commerce
-
PHPStan
PHPStan is an open-source static analysis tool for PHP that finds errors in code without running it and without the need to write tests.
Cross-cutting
Sources
-
PHP-Handbuch: Fehlerbehandlung, Vordefinierte Konstanten (opens in a new tab)
The PHP Group (php.net) accessed
-
Semantic Versioning 2.0.0, deutsche Fassung (opens in a new tab)
Semantic Versioning (semver.org) accessed
-
PHP Manual: The Deprecated attribute (opens in a new tab)
The PHP Group (php.net) accessed
-
PHP Manual: Migrating from PHP 8.3.x to PHP 8.4.x, Deprecated Features (opens in a new tab)
The PHP Group (php.net) accessed