diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php index c18d27868819..1b70e6d6d64e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/JsonDescriptor.php @@ -179,8 +179,6 @@ protected function describeContainerParameter($parameter, array $options = []) /** * Writes data as json. - * - * @return array|string */ private function writeData(array $data, array $options) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php index 53e2ee1fac35..638edbfade4f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/XmlDescriptor.php @@ -132,8 +132,6 @@ protected function describeContainerParameter($parameter, array $options = []) /** * Writes DOM document. - * - * @return \DOMDocument|string */ private function writeDocument(\DOMDocument $dom) { diff --git a/src/Symfony/Component/Console/Descriptor/JsonDescriptor.php b/src/Symfony/Component/Console/Descriptor/JsonDescriptor.php index f5a143800b27..d1af3bab2a4a 100644 --- a/src/Symfony/Component/Console/Descriptor/JsonDescriptor.php +++ b/src/Symfony/Component/Console/Descriptor/JsonDescriptor.php @@ -92,8 +92,6 @@ protected function describeApplication(Application $application, array $options /** * Writes data as json. - * - * @return array|string */ private function writeData(array $data, array $options) { diff --git a/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php b/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php index 0cc0c9901f19..ace3191a847a 100644 --- a/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php +++ b/src/Symfony/Component/Console/Descriptor/XmlDescriptor.php @@ -179,8 +179,6 @@ private function appendDocument(\DOMNode $parentNode, \DOMNode $importedParent) /** * Writes DOM document. - * - * @return \DOMDocument|string */ private function writeDocument(\DOMDocument $dom) { diff --git a/src/Symfony/Component/DomCrawler/Crawler.php b/src/Symfony/Component/DomCrawler/Crawler.php index 68d7c3dafce8..d9ae3ed7a743 100644 --- a/src/Symfony/Component/DomCrawler/Crawler.php +++ b/src/Symfony/Component/DomCrawler/Crawler.php @@ -334,7 +334,7 @@ public function addNode(\DOMNode $node) * * @param int $position The position * - * @return self + * @return static */ public function eq($position) { @@ -377,7 +377,7 @@ public function each(\Closure $closure) * @param int $offset * @param int $length * - * @return self + * @return static */ public function slice($offset = 0, $length = null) { @@ -391,7 +391,7 @@ public function slice($offset = 0, $length = null) * * @param \Closure $closure An anonymous function * - * @return self + * @return static */ public function reduce(\Closure $closure) { @@ -408,7 +408,7 @@ public function reduce(\Closure $closure) /** * Returns the first node of the current selection. * - * @return self + * @return static */ public function first() { @@ -418,7 +418,7 @@ public function first() /** * Returns the last node of the current selection. * - * @return self + * @return static */ public function last() { @@ -428,7 +428,7 @@ public function last() /** * Returns the siblings nodes of the current selection. * - * @return self + * @return static * * @throws \InvalidArgumentException When current node is empty */ @@ -444,7 +444,7 @@ public function siblings() /** * Returns the next siblings nodes of the current selection. * - * @return self + * @return static * * @throws \InvalidArgumentException When current node is empty */ @@ -460,7 +460,7 @@ public function nextAll() /** * Returns the previous sibling nodes of the current selection. * - * @return self + * @return static * * @throws \InvalidArgumentException */ @@ -476,7 +476,7 @@ public function previousAll() /** * Returns the parents nodes of the current selection. * - * @return self + * @return static * * @throws \InvalidArgumentException When current node is empty */ @@ -501,7 +501,7 @@ public function parents() /** * Returns the children nodes of the current selection. * - * @return self + * @return static * * @throws \InvalidArgumentException When current node is empty */ @@ -664,7 +664,7 @@ public function extract($attributes) * * @param string $xpath An XPath expression * - * @return self + * @return static */ public function filterXPath($xpath) { @@ -685,7 +685,7 @@ public function filterXPath($xpath) * * @param string $selector A CSS selector * - * @return self + * @return static * * @throws \RuntimeException if the CssSelector Component is not available */ @@ -706,7 +706,7 @@ public function filter($selector) * * @param string $value The link text * - * @return self + * @return static */ public function selectLink($value) { @@ -721,7 +721,7 @@ public function selectLink($value) * * @param string $value The image alt * - * @return self A new instance of Crawler with the filtered list of nodes + * @return static A new instance of Crawler with the filtered list of nodes */ public function selectImage($value) { @@ -735,7 +735,7 @@ public function selectImage($value) * * @param string $value The button text * - * @return self + * @return static */ public function selectButton($value) { @@ -937,7 +937,7 @@ public static function xpathLiteral($s) * * @param string $xpath * - * @return self + * @return static */ private function filterRelativeXPath($xpath) { diff --git a/src/Symfony/Component/Form/NativeRequestHandler.php b/src/Symfony/Component/Form/NativeRequestHandler.php index 5997fba67df1..69a2a1c7286f 100644 --- a/src/Symfony/Component/Form/NativeRequestHandler.php +++ b/src/Symfony/Component/Form/NativeRequestHandler.php @@ -192,7 +192,7 @@ private static function getRequestMethod() * This method is identical to {@link \Symfony\Component\HttpFoundation\FileBag::fixPhpFilesArray} * and should be kept as such in order to port fixes quickly and easily. * - * @return array + * @return mixed */ private static function fixPhpFilesArray($data) { @@ -228,9 +228,7 @@ private static function fixPhpFilesArray($data) /** * Sets empty uploaded files to NULL in the given uploaded files array. * - * @param mixed $data The file upload data - * - * @return array|null Returns the stripped upload data + * @return mixed Returns the stripped upload data */ private static function stripEmptyFiles($data) { diff --git a/src/Symfony/Component/HttpKernel/HttpCache/Store.php b/src/Symfony/Component/HttpKernel/HttpCache/Store.php index d0eeb165291b..9533cf637c50 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/Store.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/Store.php @@ -350,13 +350,13 @@ private function doPurge($url) * * @param string $key The store key * - * @return string The data associated with the key + * @return string|null The data associated with the key */ private function load($key) { $path = $this->getPath($key); - return file_exists($path) ? file_get_contents($path) : false; + return file_exists($path) ? file_get_contents($path) : null; } /**