Comments (5)
Sure @lyrixx , here it is:
2023-04-20 00:06:59 notice: Creation of dynamic property JoliCode\Slack\Api\Endpoint\ChatPostMessage::$formParameters is deprecated
Trace:
JoliCode\Slack\Api\Endpoint\ChatPostMessage::__construct() /home/vagrant/code/sistema/cake/vendor/jolicode/slack-php-api/generated/Endpoint/ChatPostMessage.php, line 49
JoliCode\Slack\Api\Client::chatPostMessage() /home/vagrant/code/sistema/cake/vendor/jolicode/slack-php-api/generated/Client.php, line 1806
App\Utility\SlackLib::post() /home/vagrant/code/sistema/cake/src/Utility/SlackLib.php, line 77
App\Utility\SlackLib::enviarMensaje() /home/vagrant/code/sistema/cake/src/Utility/SlackLib.php, line 44
App\Command\MonitorClasicosCommand::execute() /home/vagrant/code/sistema/cake/src/Command/MonitorClasicosCommand.php, line 29
Cake\Console\BaseCommand::run() /home/vagrant/code/sistema/cake/vendor/cakephp/cakephp/src/Console/BaseCommand.php, line 189
Cake\Console\CommandRunner::runCommand() /home/vagrant/code/sistema/cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 334
Cake\Console\CommandRunner::run() /home/vagrant/code/sistema/cake/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 172
[main] /home/vagrant/code/sistema/cake/bin/cake.php, line 12
from slack-php-api.
Can you share a stack strace? Thanks
from slack-php-api.
I'm getting the same thing. Would just like to add that a quick fix could be to add the #[\AllowDynamicProperties]
attribute. I don't know anything about JanePHP to know whether that's a workable solution, though.
My stack trace is the same though, so interesting that it only happens for that field in particular.
ErrorException: Deprecated: Creation of dynamic property JoliCode\Slack\Api\Endpoint\ChatPostMessage::$formParameters is deprecated
#2 /var/www/html/vendor/jolicode/slack-php-api/generated/Endpoint/ChatPostMessage.php(49): JoliCode\Slack\Api\Endpoint\ChatPostMessage::__construct
#1 /var/www/html/vendor/jolicode/slack-php-api/generated/Client.php(1806): JoliCode\Slack\Api\Client::chatPostMessage
#0 /var/www/html/cron/cron.php(47): null
from slack-php-api.
Thanks for this api! Any update on this? It's affecting us as well.
If you are okay with adding #[\AllowDynamicProperties]
, I can totally open a PR here.
from slack-php-api.
I'm getting the same error for ChatUpdate. Declaring the properties or adding #[\AllowDynamicProperties]
should solve this
from slack-php-api.
Related Issues (20)
- No text error code? HOT 4
- Example has syntax error HOT 3
- Type hint on @return is confusing HOT 1
- Method does not specify that exception might be thrown. HOT 4
- Some values not reachable? HOT 4
- ConversationsRepliesGetResponse200 should provide typing for `messages` other than `mixed[]` HOT 5
- UsersList and UsergroupsList should accept new parameter: "team_id" HOT 2
- Don't use deprecated factory method
- Required fields in `Objs*` classes should not be nullable HOT 1
- Question: Recommended endpoint for `response_url` HOT 3
- setNormalizer() must implement interface Symfony\Component\Serializer\Normalizer\NormalizerInterface HOT 1
- Missing @throws in the phpdocs HOT 2
- Support for the Bookmarks API? HOT 2
- Fatal Error Jane\JsonSchemaRuntime\Normalizer\CheckArray HOT 7
- Requirement for Read Only Repo: jane-php/open-api-runtime HOT 1
- Fatal error: Declaration of `ChatPostMessage::transformResponseBody()` must be compatible with `Jane\OpenApiRuntime\Client\EndpointTrait` HOT 1
- Discussion: Jane8 and `psr/http-message:^2.0` HOT 1
- Image Blocks in posts returning "invalid_blocks" error. HOT 1
- Flacky CI due to Slack rate limit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-php-api.