mirror of
https://github.com/php/phd.git
synced 2026-03-23 22:52:05 +01:00
PhD's ObjectStorage::attach() method does not respect the declared return type from its parent class (SplObjectStorage): the latter declares the return type as void. It is currently mitigated via the #[\ReturnTypeWillChange] attribute. This commit removes that attribute and instead aligns the return type declaration (to return void), with associated fixes to not return anything and not try to use a return value. Since declaring a void return type is only allowed as of PHP 7.1.0, this raises the minimum required PHP version for phd to that version. Since PHP 7.1 is super ancient and even PHP 7.3 will become EOL in a few weeks (at the time of writing) I'm making the executive decision that requiring 7.1 is fine. :-)
35 lines
875 B
JSON
35 lines
875 B
JSON
{
|
|
"name": "php/phd",
|
|
"type": "project",
|
|
"description": "PHP DocBook Rendering System",
|
|
"homepage": "http://doc.php.net/phd.php",
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Hannes Magnusson",
|
|
"email": "bjori@php.net",
|
|
"homepage": "http://people.php.net/bjori",
|
|
"role": "Lead Developer"
|
|
},
|
|
{
|
|
"name": "The PHP Documentation Team",
|
|
"email": "phpdoc@lists.php.net",
|
|
"homepage": "https://github.com/php/phd/graphs/contributors"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": ">=7.1.0",
|
|
"ext-dom": "*",
|
|
"ext-sqlite3": "*",
|
|
"ext-xmlreader": "*"
|
|
},
|
|
"suggest": {
|
|
"easybook/geshi": "For using GeSHi as code highlighter"
|
|
},
|
|
"autoload": {
|
|
"psr-0": {
|
|
"phpdotnet\\": "."
|
|
}
|
|
}
|
|
}
|