Skip to content

Commit

Permalink
type for omittables
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Nov 19, 2022
1 parent 3b4e4a6 commit aa4ff99
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/MakeBom/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
use Symfony\Component\Console\Input\InputOption;

/**
* @psalm-type TOmittable='dev'|'plugin'
*
* @internal
*
* @author jkowalleck
Expand All @@ -50,6 +52,7 @@ class Options
/**
* Possible output formats.
* First in list is the default value.
* @psalm-var non-empty-list<Format::*>
*/
private const VALUES_OUTPUT_FORMAT = [
Format::XML,
Expand All @@ -58,6 +61,10 @@ class Options

public const VALUE_OUTPUT_FILE_STDOUT = '-';

/**
* Possible omittables.
* @psalm-var non-empty-list<TOmittable>
*/
private const VALUES_OMIT = [
'dev',
'plugin',
Expand Down Expand Up @@ -164,7 +171,7 @@ public function configureCommand(Command $command): Command
*
* @var string[]
*
* @psalm-var list<'dev'|'plugin'>
* @psalm-var list<TOmittable>
*
* @psalm-allow-private-mutation
*/
Expand Down

0 comments on commit aa4ff99

Please sign in to comment.