Giter Site home page Giter Site logo

php-8-stubs's Introduction

PHP 8 stubs

The stubs are automatically extracted from php-src and are relevant for analyzing codebases that use PHP 8 or later.

php-8-stubs's People

Contributors

actions-user avatar jantvrdik avatar ondrejmirtes avatar oskarstark avatar phpstan-bot avatar renovate-bot avatar renovate[bot] avatar staabm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-8-stubs's Issues

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.

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:

* @param resource $stub

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.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.