Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SplFile{Info,Object} stub fixes #1651

Closed
wants to merge 3 commits into from

Conversation

@@ -227,23 +235,29 @@ public function getRealPath(): string|false {}

/**
* Gets an SplFileInfo object for the file
*
* @template T of SplFileInfo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of template in the stub have names, like

  • TValue
  • TDefault
  • TKey
  • TPriority
  • ...

Maybe there is something better to do here than T.

@@ -285,10 +302,12 @@ public function setFileClass(#[LanguageLevelTypeAware(['8.0' => 'string'], defau

/**
* Sets the class used with getFileInfo and getPathInfo
* @template T of SplFileInfo*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @template T of SplFileInfo*
* @template T of SplFileInfo

no ?

I never saw a syntax with *

@isfedorov
Copy link
Contributor

Pushed manually in 640e800

@isfedorov isfedorov closed this Aug 26, 2024
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.

3 participants