Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

AbstractSource::$data is an untyped array, causing mixed-* fallout in downstream analyzers

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
php
Ambito
database

Direzione di ricerca

Start at src/Metadata/Source/AbstractSource.php:58 and trace the keyed reads and writes to $data in downstream Metadata\Source implementations, including the phpdb-mysql context cited in the issue. Determine the shared data keys and represent them explicitly, then run the relevant static analysis; done means the listed mixed-* findings are resolved for those accesses.

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

Descrizione

Context

Found while working phpdb-mysql#60 (mago analyze fixes).

Data

Metadata\Source\AbstractSource::$data is declared protected array $data = []; with no shape (src/Metadata/Source/AbstractSource.php:58). Every keyed read/write against it in downstream sources (e.g. phpdb-mysql's Metadata\Source) resolves to mixed, producing mixed-array-assignment, possibly-invalid-argument, reference-constraint-violation, and too-many-arguments findings in static analysis wherever $data is touched.

@simon-mundy has the most context on this part of the metadata/SQL handling.

Lingua principale
PHP
Stelle
18
Fork
8
Merge medio
6g 11h
PR unite (30g)
14

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 php-db/phpdb

Tutte le issue di php-db/phpdb

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.