public static function string_find_last(StringValue $self, Value $needle): Value {

        // Allow only some value types.
        Common::allowTypes($needle, StringValue::class, NumberValue::class);