Skip to content

Conversation

@BenMorel
Copy link
Contributor

Fix for bug 65269.

@nikic nikic changed the title Add missing exception documentation Fix bug #65269: SplFileObject::__construct() throws LogicException as well Jun 26, 2019
@nikic
Copy link
Member

nikic commented Jun 26, 2019

@php-pulls merge

@php-pulls php-pulls closed this in a609fed Jun 26, 2019
Firehed added a commit to Firehed/doc-en that referenced this pull request Mar 18, 2021
The documented parameters differ from the names exposed in reflection/source code. Now that named parameters are supported in PHP 8, this discrepancy is confusing and impactful.

```
 $ php --rf fgetcsv
Function [ <internal:standard> function fgetcsv ] {

  - Parameters [5] {
    Parameter #0 [ <required> $stream ]
    Parameter php#1 [ <optional> ?int $length = null ]
    Parameter php#2 [ <optional> string $separator = "," ]
    Parameter php#3 [ <optional> string $enclosure = "\"" ]
    Parameter php#4 [ <optional> string $escape = "\\" ]
  }
  - Return [ array|false ]
}
```
php-pulls pushed a commit that referenced this pull request Mar 18, 2021
The documented parameters differ from the names exposed in reflection/source code. Now that named parameters are supported in PHP 8, this discrepancy is confusing and impactful.

```
 $ php --rf fgetcsv
Function [ <internal:standard> function fgetcsv ] {

  - Parameters [5] {
    Parameter #0 [ <required> $stream ]
    Parameter #1 [ <optional> ?int $length = null ]
    Parameter #2 [ <optional> string $separator = "," ]
    Parameter #3 [ <optional> string $enclosure = "\"" ]
    Parameter #4 [ <optional> string $escape = "\\" ]
  }
  - Return [ array|false ]
}
```

Closes GH-493.
tiffany-taylor pushed a commit to tiffany-taylor/doc-en that referenced this pull request Jan 16, 2023
claudepache pushed a commit to claudepache/php-doc-en that referenced this pull request Jun 1, 2023
@bkp23 bkp23 mentioned this pull request Nov 8, 2024
paz-ekino added a commit to paz-ekino/doc-en that referenced this pull request Dec 11, 2024
With the restricted visibility on id property for class BlogPost, example 3 is not functional.
arnaud-lb pushed a commit that referenced this pull request Dec 11, 2024
With private visibility on id property for class BlogPost, example 3 is not functional. Changing visibility to public resolves this error. All properties are set to public in this example for homogeneity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants