PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 All 45 releases
← All changes | classes/class-import-file.php +8 -12 2.3.2 → 3.4 View file →
@@ -7,8 +7,10 @@
7 7 * @author Tobias Bäthge
8 8 * @since 2.3.0
9 9 */
10 10
11 +declare(strict_types=1);
12 +
11 13 namespace TablePress\Import;
12 14
13 15 // Prohibit direct script loading.
14 16 defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
@@ -26,51 +28,45 @@
26 28 /**
27 29 * Local file path location of the file to import.
28 30 *
29 31 * @since 2.3.0
30 - * @var string
31 32 */
32 - public $location = '';
33 + public string $location = '';
33 34
34 35 /**
35 36 * File extension of the file to import.
36 37 *
37 38 * @since 2.3.0
38 - * @var string
39 39 */
40 - public $extension = '';
40 + public string $extension = '';
41 41
42 42 /**
43 43 * MIME type of the file to import.
44 44 *
45 45 * @since 2.3.0
46 - * @var string
47 46 */
48 - public $mime_type = '';
47 + public string $mime_type = '';
49 48
50 49 /**
51 50 * Name of the file to import, used as the table name.
52 51 *
53 52 * @since 2.3.0
54 - * @var string
55 53 */
56 - public $name = '';
54 + public string $name = '';
57 55
58 56 /**
59 57 * Error code related to the import of the file.
60 58 *
61 59 * @since 2.3.0
62 - * @var ?\WP_Error
63 60 */
64 - public $error = null;
61 + public ?\WP_Error $error = null;
65 62
66 63 /**
67 64 * Whether the file should be kept or deleted after import.
68 65 *
69 66 * @since 2.3.0
70 - * @var bool
71 67 */
72 - public $keep_file = false;
68 + public bool $keep_file = false;
73 69
74 70 /**
75 71 * Creates a new File object, from an array of file properties.
76 72 *