Function imagedestroy() is deprecated since 8.5

Aperta
#209 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
60/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php
Ambito
testing-qa

Direzione di ricerca

Start by reproducing the linked PHPStan example with PHP 8.5 and the listed phpstan-deprecation-rules version. Trace how the rules determine which PHP version’s deprecations apply, including the project’s Composer PHP constraint. Done means the example reports imagedestroy() as deprecated when analyzed for PHP 8.5 while respecting the project’s supported-version configuration.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hi,

I hope I found the right repo to report this issue.

I'm not so much into phpstan internals, so I'm just leaving it here:

The following exception has been thrown in my code:

Function imagedestroy() is deprecated since 8.5, as it has no effect since PHP 8.0

But the phpstan didn't report anything. But it think it should.

https://phpstan.org/r/44a6cfca-c740-4641-8e03-34222efda24c

But as you can see it works in the above example. So I must have done something wrong. What did I miss? I'm using PHP 8.5.

Does it look into composer required php version? If so, I got here:

     "require": {
        "php": "^8.1",

But my project supports PHP 8.1 up to 8.5

I've installed both phpstan + deprecation-rules:

    "require-dev": {
        "phpstan/phpstan": "^2.0",
        "phpstan/phpstan-deprecation-rules": "^2.0"
    },
Image
Lingua principale
PHP
Stelle
465
Fork
26
Merge medio
17h 27m
PR unite (30g)
8

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di phpstan/phpstan-deprecation-rules

Tutte le issue di phpstan/phpstan-deprecation-rules

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.