adamaveray / typeform Goto Github PK
View Code? Open in Web Editor NEWA library providing a strongly-typed PHP interface to the Typeform API.
License: MIT License
A library providing a strongly-typed PHP interface to the Typeform API.
License: MIT License
Hello @adamaveray!
Some forms do not have a welcome screen, and then the method(GetForm) crashes :(
Undefined array key "welcome_screens" {"userId":11111,"exception":"[object] (ErrorException(code: 0): Undefined array key \"welcome_screens\" at /var/www/app/vendor/adamaveray/typeform/src/Models/Forms/Form.php:59)
[stacktrace]
#0 /var/www/app/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(266): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Undefined array...', '/var/www/app/ve...', 59)
#1 /var/www/app/vendor/adamaveray/typeform/src/Models/Forms/Form.php(59): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}(2, 'Undefined array...', '/var/www/app/ve...', 59)
#2 /var/www/app/vendor/adamaveray/typeform/src/ApiClient.php(295): AdamAveray\\Typeform\\Models\\Forms\\Form->__construct(Array)
#3 /var/www/app/app/Services/Api/Typeform/TypeformFormsService.php(31): AdamAveray\\Typeform\\ApiClient->getForm('******')
#4 /var/www/app/app/Jobs/Api/Typeform/SyncForm.php(39): Softserve\\Services\\Api\\Typeform\\TypeformFormsService->syncForms(Object(Softserve\\Entities\\Typeform\\Workspace), 200)
Can you fix this problem? Thanks for the Wrapper Library ๐๐
Hello @adamaveray!
When I try to call the method "getWebhooks" I get an error message
AdamAveray\Typeform\Utils\Refs\Ref::__construct(): Argument #2 ($data) must be of type array, string given, called in /var/www/app/vendor/adamaveray/typeform/src/Models/Forms/Webhook.php on line 37
at vendor/adamaveray/typeform/src/Utils/Refs/Ref.php:25
21โ /**
22โ * @psalm-param class-string<T> $className
23โ * @param array{ href: string } $data
24โ */
โ 25โ public function __construct(string $className, array $data)
26โ {
27โ $this->className = $className;
28โ $this->href = $data['href'];
29โ }
Can you fix this problem? Thanks for the Wrapper Library ๐๐
$this->validations = $data['validations'] ?? [];
on https://github.com/adamaveray/typeform/blob/main/src/Models/Forms/Field.php#L27
still produce error when validations key is not in array :
In Field.php line 27:
Warning: Undefined array key "validations"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.