composer update

This commit is contained in:
2019-12-01 06:37:45 +00:00
parent fa199eef05
commit 3115ab75a5
3650 changed files with 72361 additions and 147137 deletions
+8 -9
View File
@@ -1,10 +1,13 @@
<?php
declare(strict_types=1);
/**
* phpDocumentor
*
* PHP Version 5.5
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
* @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
@@ -18,15 +21,11 @@ interface Element
{
/**
* Returns the Fqsen of the element.
*
* @return Fqsen
*/
public function getFqsen();
public function getFqsen(): Fqsen;
/**
* Returns the name of the element.
*
* @return string
*/
public function getName();
}
public function getName(): string;
}
+6 -10
View File
@@ -1,11 +1,13 @@
<?php
declare(strict_types=1);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
* @copyright 2010-2018 Mike van Riel<mike@phpdoc.org>
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
@@ -19,22 +21,16 @@ interface File
{
/**
* Returns the content of the file as a string.
*
* @return string
*/
public function getContents();
public function getContents(): string;
/**
* Returns md5 hash of the file.
*
* @return string
*/
public function md5();
public function md5(): string;
/**
* Returns an relative path to the file.
*
* @return string
*/
public function path();
public function path(): string;
}
+15 -16
View File
@@ -1,16 +1,21 @@
<?php
declare(strict_types=1);
/**
* phpDocumentor
*
* PHP Version 5.5
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
* @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace phpDocumentor\Reflection;
use InvalidArgumentException;
/**
* Value Object for Fqsen.
*
@@ -31,21 +36,19 @@ final class Fqsen
/**
* Initializes the object.
*
* @param string $fqsen
*
* @throws \InvalidArgumentException when $fqsen is not matching the format.
* @throws InvalidArgumentException when $fqsen is not matching the format.
*/
public function __construct($fqsen)
public function __construct(string $fqsen)
{
$matches = array();
$matches = [];
$result = preg_match(
'/^\\\\([a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff\\\\]*)?(?:[:]{2}\\$?([a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*))?(?:\\(\\))?$/',
$fqsen,
$matches
$fqsen,
$matches
);
if ($result === 0) {
throw new \InvalidArgumentException(
throw new InvalidArgumentException(
sprintf('"%s" is not a valid Fqsen.', $fqsen)
);
}
@@ -62,20 +65,16 @@ final class Fqsen
/**
* converts this class to string.
*
* @return string
*/
public function __toString()
public function __toString(): string
{
return $this->fqsen;
}
/**
* Returns the name of the element without path.
*
* @return string
*/
public function getName()
public function getName(): string
{
return $this->name;
}
+8 -13
View File
@@ -1,11 +1,13 @@
<?php
declare(strict_types=1);
/**
* This file is part of phpDocumentor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright 2010-2015 Mike van Riel<mike@phpdoc.org>
* @copyright 2010-2018 Mike van Riel<mike@phpdoc.org>
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
@@ -17,7 +19,7 @@ namespace phpDocumentor\Reflection;
*/
final class Location
{
/** @var int */
/** @var int */
private $lineNumber = 0;
/** @var int */
@@ -25,32 +27,25 @@ final class Location
/**
* Initializes the location for an element using its line number in the file and optionally the column number.
*
* @param int $lineNumber
* @param int $columnNumber
*/
public function __construct($lineNumber, $columnNumber = 0)
public function __construct(int $lineNumber, int $columnNumber = 0)
{
$this->lineNumber = $lineNumber;
$this->lineNumber = $lineNumber;
$this->columnNumber = $columnNumber;
}
/**
* Returns the line number that is covered by this location.
*
* @return integer
*/
public function getLineNumber()
public function getLineNumber(): int
{
return $this->lineNumber;
}
/**
* Returns the column number (character position on a line) for this location object.
*
* @return integer
*/
public function getColumnNumber()
public function getColumnNumber(): int
{
return $this->columnNumber;
}
+6 -5
View File
@@ -1,10 +1,13 @@
<?php
declare(strict_types=1);
/**
* phpDocumentor
*
* PHP Version 5.5
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
* @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
@@ -18,8 +21,6 @@ interface Project
{
/**
* Returns the name of the project.
*
* @return string
*/
public function getName();
public function getName(): string;
}
@@ -1,13 +1,17 @@
<?php
declare(strict_types=1);
/**
* phpDocumentor
*
* PHP Version 5.5
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright 2010-2015 Mike van Riel / Naenius (http://www.naenius.com)
* @copyright 2010-2018 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace phpDocumentor\Reflection;
/**
@@ -23,5 +27,5 @@ interface ProjectFactory
* @param File[] $files
* @return Project
*/
public function create($name, array $files);
public function create($name, array $files): Project;
}