# Bug report <!-- Before reporting an issue please check that you are using the latest PHPStan version! --> <!-- Please describe your problem here. --> the following function accepts a` mixed $params. ` `function stream_filter_append($stream, string $filter_name, int $mode, mixed $params) {}` but getting the following error >Parameter #4 $params of function stream_filter_append expects array, int given. ### Code snippet that reproduces the problem ```<?php declare(strict_types = 1); $csvStream = \fopen('php://memory', 'w+'); if (!$csvStream) { throw new RuntimeException('Failed to open CSV memory stream'); } fputcsv($csvStream, ["a",2,"c"]); rewind($csvStream); stream_filter_append($csvStream, 'zlib.deflate', STREAM_FILTER_WRITE, -1); ``` https://phpstan.org/r/bcfb9f4b-0a8d-4c97-8fb1-e50172c3c341 <!-- Try to reproduce the issue you are facing using https://phpstan.org/ and post the unique URL here --> ### Expected output No, Errors. <!-- Was the issue reported incorrectly? Or should PHPStan detect an issue with the code but doesn't? -->