@@ -2399,15 +2399,14 @@ function type_is(Type $type, string $typeClass) : bool
23992399 * @template T
24002400 *
24012401 * @param Type<T> $type
2402- * @param class-string<Type<T>> $typeClass
24032402 * @param class-string<Type<T>> ...$typeClasses
24042403 *
2405- * @deprecated please use \Flow\Types\DSL\type_is_any($type, $typeClass, ...$typeClasses): bool instead
2404+ * @deprecated please use \Flow\Types\DSL\type_is_any($type, ...$typeClasses): bool instead
24062405 */
24072406#[DocumentationDSL(module: Module::DEPRECATED , type: DSLType::DEPRECATED )]
2408- function type_is_any (Type $ type , string $ typeClass , string ...$ typeClasses ) : bool
2407+ function type_is_any (Type $ type , string ...$ typeClasses ) : bool
24092408{
2410- return type_is_any_new ($ type , $ typeClass , ...$ typeClasses );
2409+ return type_is_any_new ($ type , ...$ typeClasses );
24112410}
24122411
24132412#[DocumentationDSL(module: Module::CORE , type: DSLType::DATA_FRAME )]
@@ -2497,17 +2496,17 @@ function with_entry(string $name, ScalarFunction $function) : WithEntry
24972496}
24982497
24992498#[DocumentationDSL(module: Module::CORE , type: DSLType::HELPER )]
2500- function constraint_unique (string $ reference , string ...$ references ) : UniqueConstraint
2499+ function constraint_unique (string ...$ references ) : UniqueConstraint
25012500{
2502- return new UniqueConstraint ($ reference , ...$ references );
2501+ return new UniqueConstraint (...$ references );
25032502}
25042503
25052504#[DocumentationDSL(module: Module::CORE , type: DSLType::HELPER )]
2506- function constraint_sorted_by (string |Reference $ column , string | Reference ...$ columns ) : SortedByConstraint
2505+ function constraint_sorted_by (string |Reference ...$ columns ) : SortedByConstraint
25072506{
25082507 $ references = \array_map (
25092508 static fn (string |Reference $ ref ) => EntryReference::init ($ ref ),
2510- [ $ column , ... $ columns]
2509+ $ columns,
25112510 );
25122511
25132512 return new SortedByConstraint (...$ references );
0 commit comments