diff --git a/.laminas-ci/pre-run.sh b/.laminas-ci/pre-run.sh new file mode 100755 index 0000000..99f96b2 --- /dev/null +++ b/.laminas-ci/pre-run.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Regenerate docblocks on test/StaticAnalysis files so psalm will pick up any breakages + +WORKDIR=$2 +JOB=$3 +COMMAND=$(echo "${JOB}" | jq -r '.command') +if [[ ! ${COMMAND} =~ psalm ]];then + exit 0 +fi + +cd "$WORKDIR" +vendor/bin/laminas --container test/container.php form:psalm-type test/StaticAnalysis diff --git a/test/StaticAnalysis/Artist.php b/test/StaticAnalysis/Artist.php index eb8bb24..f85086d 100644 --- a/test/StaticAnalysis/Artist.php +++ b/test/StaticAnalysis/Artist.php @@ -12,9 +12,9 @@ /** * @psalm-import-type TAlbumData from Album * @psalm-type TArtistData = array{ - * id: null|string, - * name: null|string, - * albums: array, + * id: null|string, + * name: null|string, + * albums: array, * } * @extends Form */