From the SHIFTOUT section in the manual:
SHIFTOUT DataPin, ClockPin, Mode, [Var{\Bits}...]
...
...
\Bits optionally specifies the number of bits to be shifted out. If it is not specified, 8
bits are shifted out, independent of the variable type
.