Skip to content

Commit fe5c7c8

Browse files
committed
Fix file type, should be string
1 parent f882efc commit fe5c7c8

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

Tool/Generator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@ private function getPHPType(string $type) : string
423423
{
424424
$type = 'float';
425425
}
426+
elseif ('file' == $type)
427+
{
428+
$type = 'string';
429+
}
426430
elseif ('uuid' == $type)
427431
{
428432
$type = '\PHPFUI\ConstantContact\UUID';

phpstan.neon.dist

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@ parameters:
44
editorUrl: '%%file%% %%line%% %%column%%: %%error%%'
55
paths:
66
- src
7-
- Tests
87
- Tool
9-
ignoreErrors:
10-
-
11-
message: '#Access to an undefined property Tests\\Fixtures[a-zA-Z0-9\\_]+::[\$a-zA-Z0-9_]+#'
12-
paths:
13-
- Tests/*
148

src/ConstantContact/V3/Activities/ContactsFileImport.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ public function __construct(\PHPFUI\ConstantContact\Client $client)
2929
* exceeds 4 MB, only the contacts contained in the first 4 MB are imported
3030
* and the remaining data is dropped.
3131
*
32-
* @param file $file The CSV file you are importing. The column headings that you can use in the file are: `first_name`,
33-
`last_name`, `email`, `phone`, `job_title`, `anniversary`, `birthday_day`, `birthday_month`, `company_name`, `street`, `street2`, `city`, `state`, `zip`, and `country`. The only required column heading is `email`.
34-
35-
36-
You can also use custom fields as column headings. Enter the custom field name prefixed with `cf:` as the column heading. For example, use `cf:first_name` as the header name if you have a custom field named "first_name". The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
37-
32+
* @param string $file The CSV file you are importing. The column headings that you can use in the file are: `first_name`,
33+
* `last_name`, `email`, `phone`, `job_title`, `anniversary`, `birthday_day`, `birthday_month`, `company_name`, `street`, `street2`, `city`, `state`, `zip`, and `country`. The only required column heading is `email`.
34+
*
35+
*
36+
* You can also use custom fields as column headings. Enter the custom field name prefixed with `cf:` as the column heading. For example, use `cf:first_name` as the header name if you have a custom field named "first_name". The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
37+
*
3838
* @param array $list_ids Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact `list_id` values.
3939
*/
40-
public function post(file $file, array $list_ids) : array
40+
public function post(string $file, array $list_ids) : array
4141
{
4242

4343
return $this->doPost(['file' => $file, 'list_ids' => $list_ids, ]);

0 commit comments

Comments
 (0)