$diffs, ): ImmVector { return $diffs->mapWithKey( ($path, $body) ==> shape('path' => $path, 'body' => $body) )->toImmVector(); } protected function execSteps( string $cwd, ...$steps ): void { foreach ($steps as $step) { ShipItUtil::shellExec( $cwd, /* stdin = */ null, ShipItUtil::DONT_VERBOSE, ...$step, ); } } static protected function invoke_static_bypass_visibility( classname $classname, string $method, ...$args ) { invariant( method_exists($classname, $method), 'Method "%s" does not exists on "%s"!', $method, $classname, ); $rm = new \ReflectionMethod($classname, $method); invariant( $rm->isStatic(), '"%s" is not a static method on "%s"!', $method, $classname, ); invariant( null !== $rm->getAttribute('TestsBypassVisibility'), '"%s" is not annotated with "TestsBypassVisibility" on "%s"', $method, $classname, ); $rm->setAccessible(true); return $rm->invokeArgs(null, $args); } }