-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return Type of resource replace by class #1269
Comments
Thanks @jansor , and yes we are aware of the resource type going to be deprecated in the near future, but I'm not sure I understand your question. Are you asking if we are going to define our own class(es) for sqlsrv/pdo_sqlsrv to communicate with SQL Server? |
Hi @yitam , i assume yes, I don't know how to implement this but for future releases of the driver, add opaque class? Similar to CurlHandle?
Under the documentation part its then possible to add: This gives the advantage that we can define return types on methods and properties. |
Thanks @jansor for the suggestion. Currently there is no immediate plan for this, but I'll mark this as a feature request. |
I was just looking for this - it would be great to see in a future release! The PostgreSQL drivers also return an instance of a class rather than a resource as of PHP 8.1 (https://www.php.net/manual/en/class.pgsql-connection.php). |
Hi,
I was wondering, as I understand the type of resource is something in the future version they going to deprecate/replace.
Now when i was just playing around with CURL under PHP8.0 and saw following items in documentation.
The documentation is based for PHP Storm, but is their a similar implementation possible?
As an example that's direct from PHP: https://www.php.net/manual/en/class.curlhandle.php
As a future implementation towards 8.1 or next version, can we apply the same logic under the SQL system?
Just a suggestion
Thanks for all the hard work!!
The text was updated successfully, but these errors were encountered: