NEW : allow stock management by product #971
Annotations
2 errors and 1 warning
Run PHPStan:
htdocs/product/class/product.class.php#L836
Property Product::$fields (array<string, array{type: string, label: string, enabled: int<0, 2>|string, position: int, notnull?: int, visible: int<-5, 5>|string, alwayseditable?: int<0, 1>, noteditable?: int<0, 1>, ...}>) does not accept default value of type array{rowid: array{type: 'integer', label: 'TechnicalID', enabled: 1, visible: -2, notnull: 1, index: 1, position: 1, comment: 'Id'}, ref: array{type: 'varchar(128)', label: 'Ref', enabled: 1, visible: 1, notnull: 1, showoncombobox: 1, index: 1, position: 10, ...}, entity: array{type: 'integer', label: 'Entity', enabled: 1, visible: 0, default: '1', notnull: 1, index: 1, position: 5}, label: array{type: 'varchar(255)', label: 'Label', enabled: 1, visible: 1, notnull: 1, showoncombobox: 2, position: 15, csslist: 'tdoverflowmax250'}, barcode: array{type: 'varchar(255)', label: 'Barcode', enabled: 'isModEnabled(…', position: 20, visible: -1, showoncombobox: 3, cssview: 'tdwordbreak', csslist: 'tdoverflowmax125'}, fk_barcode_type: array{type: 'integer', label: 'BarcodeType', enabled: 1, position: 21, notnull: 0, visible: -1}, note_public: array{type: 'html', label: 'NotePublic', enabled: 1, visible: 0, position: 61}, note: array{type: 'html', label: 'NotePrivate', enabled: 1, visible: 0, position: 62}, ...}.
|
Run PHPStan
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading