Skip to content

Commit

Permalink
PHPDoc avoid aliases for scalar types
Browse files Browse the repository at this point in the history
https://php.net/language.types.declarations
Also helps PHPStan, which otherwise makes another lookup as it might be in the SimplePie namespace, and which fails in some cases.
  • Loading branch information
Alkarex committed Jun 18, 2024
1 parent 1ec20d6 commit 813d3b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/HTTP/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ protected function chunked()
* Prepare headers (take care of proxies headers)
*
* @param string $headers Raw headers
* @param integer $count Redirection count. Default to 1.
* @param int $count Redirection count. Default to 1.
*
* @return string
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function get_feed()
* MD5 hash based on the permalink, title and content.
*
* @since Beta 2
* @param boolean $hash Should we force using a hash instead of the supplied ID?
* @param bool $hash Should we force using a hash instead of the supplied ID?
* @param string|false $fn User-supplied function to generate an hash
* @return string|null
*/
Expand Down Expand Up @@ -252,7 +252,7 @@ public function get_title()
* `<itunes:subtitle>`
*
* @since 0.8
* @param boolean $description_only Should we avoid falling back to the content?
* @param bool $description_only Should we avoid falling back to the content?
* @return string|null
*/
public function get_description(bool $description_only = false)
Expand Down Expand Up @@ -302,7 +302,7 @@ public function get_description(bool $description_only = false)
* Uses `<atom:content>` or `<content:encoded>` (RSS 1.0 Content Module)
*
* @since 1.0
* @param boolean $content_only Should we avoid falling back to the description?
* @param bool $content_only Should we avoid falling back to the description?
* @return string|null
*/
public function get_content(bool $content_only = false)
Expand Down
2 changes: 1 addition & 1 deletion src/Misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public static function windows_1252_to_utf8(string $string)
* @param string $data Raw data in $input encoding
* @param string $input Encoding of $data
* @param string $output Encoding you want
* @return string|boolean False if we can't convert it
* @return string|bool False if we can't convert it
*/
public static function change_encoding(string $data, string $input, string $output)
{
Expand Down

0 comments on commit 813d3b1

Please sign in to comment.