@@ -49,7 +49,7 @@ class Projects extends AbstractApi
4949 public function all (array $ parameters = [])
5050 {
5151 $ resolver = $ this ->createOptionsResolver ();
52- $ booleanNormalizer = function (Options $ resolver , $ value ) {
52+ $ booleanNormalizer = function (Options $ resolver , $ value ): string {
5353 return $ value ? 'true ' : 'false ' ;
5454 };
5555 $ resolver ->setDefined ('archived ' )
@@ -114,7 +114,7 @@ public function all(array $parameters = [])
114114 public function show ($ project_id , array $ parameters = [])
115115 {
116116 $ resolver = $ this ->createOptionsResolver ();
117- $ booleanNormalizer = function (Options $ resolver , $ value ) {
117+ $ booleanNormalizer = function (Options $ resolver , $ value ): bool {
118118 return (bool ) $ value ;
119119 };
120120 $ resolver ->setDefined ('statistics ' )
@@ -251,10 +251,10 @@ public function createTrigger($project_id, string $description)
251251 public function pipelines ($ project_id , array $ parameters = [])
252252 {
253253 $ resolver = $ this ->createOptionsResolver ();
254- $ booleanNormalizer = function (Options $ resolver , $ value ) {
254+ $ booleanNormalizer = function (Options $ resolver , $ value ): string {
255255 return $ value ? 'true ' : 'false ' ;
256256 };
257- $ datetimeNormalizer = function (Options $ resolver , \DateTimeInterface $ value ) {
257+ $ datetimeNormalizer = function (Options $ resolver , \DateTimeInterface $ value ): string {
258258 return $ value ->format ('Y-m-d ' );
259259 };
260260
@@ -671,7 +671,7 @@ public function enableDeployKey($project_id, int $key_id)
671671 public function events ($ project_id , array $ parameters = [])
672672 {
673673 $ resolver = $ this ->createOptionsResolver ();
674- $ datetimeNormalizer = function (Options $ resolver , \DateTimeInterface $ value ) {
674+ $ datetimeNormalizer = function (Options $ resolver , \DateTimeInterface $ value ): string {
675675 return $ value ->format ('Y-m-d ' );
676676 };
677677
@@ -977,7 +977,7 @@ public function addShare($project_id, array $parameters = [])
977977 {
978978 $ resolver = $ this ->createOptionsResolver ();
979979
980- $ datetimeNormalizer = function (OptionsResolver $ optionsResolver , \DateTimeInterface $ value ) {
980+ $ datetimeNormalizer = function (OptionsResolver $ optionsResolver , \DateTimeInterface $ value ): string {
981981 return $ value ->format ('Y-m-d ' );
982982 };
983983
0 commit comments