The stubs are automatically extracted from php-src and are relevant for analyzing codebases that use PHP 8 or later.
php-8-stubs's Introduction
php-8-stubs's People
php-8-stubs's Issues
Merge PDO_*_Ext definitions into PDO class
In php-src there are some special stubs that are not supposed to be used on their own because they don't represent any real class, like: https://github.com/php/php-src/blob/master/ext/pdo_pgsql/pgsql_driver.stub.php
/cc @kocsismate Are you aware of any other special stubs that need special handling in php-src? Thanks!
Missing @throws tag for __soapCall
The __soapCall
function can throw a SoapFault
Exception.
From the documentation:
On error, a call to a SOAP function can cause PHP to throw exceptions or return a SoapFault object if exceptions are disabled.
An example of catching a thrown SoapFault
can be found in the examples of the is_soap_fault
documentation.
Relevant code in PHPStan stubs.
Related PR for fixing the stubs in JetBrains stubs.
This results in PHPStan wrongly reporting Dead catch - Exception is never thrown in the try block
issues.
I'm not sure if this is the correct location to report this issue, but I couldn't find a better location to do so.
Stubs are missing class constants and properties
Invalid stub for Phar::setPhar
Hi,
On a project with PHP 8.0 RC3 installed, PHPStan reports the following error:
Parameter #1 $stub of method Phar::setStub() expects resource, string given.
I think it's because the following stub does not allow string values:
php-8-stubs/stubs/ext/phar/Phar.php
Line 169 in 00eb0a2
According to the documentation, it must be a string:
https://www.php.net/manual/en/phar.setstub.php
(also according to the PhpStorm stub, the parameter can also be a resource... but I don't know if that's the case, or maybe it was possible in older versions of PHP)
Dependency Dashboard
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Open
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
- fix(deps): update extractor (
nikic/php-parser
,phpstan/phpdoc-parser
,phpstan/phpstan
,symfony/console
)
Detected dependencies
composer
extractor/composer.json
php ^8.3
symfony/console ^7.0.0
symfony/finder ^7.0
nikic/php-parser ^5
phpstan/phpstan ^1.5
phpstan/extension-installer ^1.1
phpstan/phpdoc-parser ^1.4
github-actions
.github/workflows/lock-closed-issues.yml
dessant/lock-threads v5
.github/workflows/release.yml
actions/checkout v4
softprops/action-gh-release v2
.github/workflows/send-pr.yml
shivammathur/setup-php v2
actions/checkout v4
peter-evans/create-pull-request v6
.github/workflows/update.yml
actions/checkout v4
shivammathur/setup-php v2
actions/checkout v4
actions/checkout v4
actions/checkout v4
actions/checkout v4
WyriHaximus/github-action-get-previous-tag v1
WyriHaximus/github-action-next-semvers v1
stefanzweifel/git-auto-commit-action v5
- Check this box to trigger a request for Renovate to run again on this repository
Stubs for imap_* functions are outdated on PHP 8.1
Hi,
PHP 8.1 has changed imap_* function signatures to operate on IMAP\Connection
class instead of resource
.
This repo hasn't updated stubs for these functions yet.
As per my understanding, stubs are auto-generated. But if you need a PR, I am willing to do it.
Thanks.
Exclude zend_test and dl_test
Extensions zend_test
and dl_test
are internal to PHP and should be excluded from stubs.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.