Skip to content

Conversation

@dconco
Copy link
Owner

@dconco dconco commented Jan 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 2, 2026 18:44
@dconco dconco merged commit b93df95 into master Jan 2, 2026
5 checks passed
@dconco dconco deleted the v2.0.5 branch January 2, 2026 18:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR releases version 2.0.5 of the PhpSPA framework, marking it as the current stable version. The release includes improvements to state management, HTTP client functionality, and updates deployment/documentation URLs.

  • Improved state management by replacing sentinel value checking with func_num_args() for more robust argument detection
  • Added Unix socket support for HTTP client requests
  • Changed SSL verification default from disabled to enabled for enhanced security

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
docs/references/index.md Updated deployment URL from Vercel to Railway App
badge/loc.svg Updated lines of code count from 16,124 to 16,127
app/core/Helper/StateManager.php Refactored __invoke() to use func_num_args() instead of sentinel value for detecting missing arguments
app/core/Client/PendingRequest.php Added unixSocketPath() method for Unix domain socket configuration
app/core/Client/CurlHttpClient.php Changed SSL verification default to true and applied minor formatting improvements
CHANGELOG.md Updated version status, added installation instructions, and changed documentation URLs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +124 to +127
public function unixSocketPath(string $path): PendingRequest
{
$this->options['unix_socket_path'] = $path;
return $this;
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method duplicates the functionality of the unixSocket() method at lines 140-144. Both methods set the same option unix_socket_path and have identical behavior. The unixSocket() method has comprehensive documentation while this method has none. Consider removing this duplicate method to avoid confusion and maintain a single, well-documented API.

Suggested change
public function unixSocketPath(string $path): PendingRequest
{
$this->options['unix_socket_path'] = $path;
return $this;
/**
* Alias for {@see PendingRequest::unixSocket()}.
*
* @deprecated Use {@see PendingRequest::unixSocket()} instead.
*
* @param string $path Absolute or relative filesystem path to the Unix socket file.
* @return PendingRequest Returns the current instance for fluent chaining.
*/
public function unixSocketPath(string $path): PendingRequest
{
return $this->unixSocket($path);

Copilot uses AI. Check for mistakes.
Comment on lines 68 to 70
* @param mixed $value Optional value to be processed when the object is invoked.
* @return mixed The result of the invocation, depending on the implementation.
*/
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docblock is now outdated. It mentions an optional $value parameter that no longer exists in the method signature. The docblock should be updated to reflect that the method now uses variadic argument checking with func_num_args() and func_get_arg() instead of a named parameter with a default value.

Copilot uses AI. Check for mistakes.
Comment on lines +199 to +200
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $options['verify_ssl'] ?? true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, ($options['verify_ssl'] ?? true) ? 2 : 0);
Copy link

Copilot AI Jan 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the default SSL verification from false to true is a breaking change for existing code that relies on the current default behavior. This could cause existing HTTP requests to fail if they were connecting to endpoints with self-signed certificates or other SSL issues. While enabling SSL verification by default is a security best practice, this change should be clearly documented as a breaking change in the changelog and potentially versioned as a major release (v3.0.0) rather than a patch release (v2.0.5).

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

@dconco
Copy link
Owner Author

dconco commented Jan 2, 2026

@copilot open a new pull request to apply changes based on the comments in this thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants