-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Pchp.Library.Spl.TypeError: "A scalar of type 'double' used as an object" #1067
Comments
Hi @FibonacciFox ! Do you have a stack trace of the exception? I recommend also disabling "Just My Code" when debugging (depends on your IDE). |
@jakubmisek, I hope this helps.
|
This is the $button->Content = $content1; In PHP, |
@jakubmisek, thank you for your help. |
This behavior seems to be a bit inconsistent ... what should work now, is assigning only PHP It's actually unexpected, that We have to make it work in both cases. |
thank you @FibonacciFox |
Hello, peachpie team!
I am working on creating a software development environment using peachpie. Faced with such a problem.
Creating a button click event in php
How is this implemented in c#
![image](https://user-images.githubusercontent.com/61143434/189116976-f94d5a8c-10e9-4893-a289-c8f9f02ef05a.png)
private readonly IDictionary<string, EventHandler<RoutedEventArgs>> _events;
Error:
![image](https://user-images.githubusercontent.com/61143434/189117453-8b5a6848-a441-4157-9daf-32513711a205.png)
1. This error occurs with any scalar type that I pass to an anonymous php function.
1.1.This error occurs only if an anonymous function is called in a c# event.
The Content property has the object type.
If you redefine the Content property in:
There will be no mistakes!
The text was updated successfully, but these errors were encountered: