PluginProbe
WPIDE – File Manager & Code Editor / 3.5.9
WPIDE – File Manager & Code Editor v3.5.9
3.5.9 3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 All 55 releases
← All changes | vendor/symfony/mime/Part/DataPart.php +2 -2 3.23.5.9 View file →
@@ -32,9 +32,9 @@
32 32
33 33 /**
34 34 * @param resource|string $body
35 35 */
36 - public function __construct($body, string $filename = null, string $contentType = null, string $encoding = null)
36 + public function __construct($body, ?string $filename = null, ?string $contentType = null, ?string $encoding = null)
37 37 {
38 38 unset($this->_parent);
39 39
40 40 if (null === $contentType) {
@@ -50,9 +50,9 @@
50 50 }
51 51 $this->setDisposition('attachment');
52 52 }
53 53
54 - public static function fromPath(string $path, string $name = null, string $contentType = null): self
54 + public static function fromPath(string $path, ?string $name = null, ?string $contentType = null): self
55 55 {
56 56 if (null === $contentType) {
57 57 $ext = strtolower(substr($path, strrpos($path, '.') + 1));
58 58 if (null === self::$mimeTypes) {