Skip to content

Commit

Permalink
Issue #52: Require string as php value expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed Oct 20, 2024
1 parent b432aca commit 079b18c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Formula/Formula.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,15 @@ public static function valueSimple(mixed $value): Formula_OptionlessInterface {
}

/**
* @param mixed $php
* @param string $php
* Value expression in php.
*
* @return \Ock\Ock\Formula\Optionless\Formula_OptionlessInterface
* Formula with the fixed value.
* This formula is optionless, which means it defines a value independent of
* any configuration.
*/
public static function valuePhp(mixed $php): Formula_OptionlessInterface {
public static function valuePhp(string $php): Formula_OptionlessInterface {
return new Formula_FixedPhp($php);
}

Expand Down

0 comments on commit 079b18c

Please sign in to comment.