dg / ftp-deployment

A tool for automated deployment of web applications to an FTP server.
https://nette.org
Other
601 stars 89 forks source link

Dynamic property is deprecated #163

Closed laurentmuller closed 6 months ago

laurentmuller commented 1 year ago

PHAR Version: 3.5.0 PHP Version: 8.2.5

Bug Description

When I deploy my application to local, the FileServer class is used.

The following exception is throw:

Error: Creation of dynamic property Deployment\FileServer::$filePermissions is deprecated in phar://deployment.phar/src/Deployment/CliRunner.php:2 

Steps To Reproduce

Simply deploy to local with the following deploy file properties:

[symphony]
remote = file://D:/local/production

Expected Behavior

No error must be raised.

Possible Solution

Maybe we can update the FileServer class by adding the following attribute:

#[AllowDynamicProperties]