Skip to content

Commit

Permalink
support Haxe 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed May 7, 2023
1 parent 17754bd commit c8846c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
- windows-latest
haxe:
- nightly
- 4.3.1
- 4.2.5

steps:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- "Null safety: Cannot pass nullable value to not-nullable argument" with Haxe 4.3


## [0.1.0] - 2023-02-17

### Added
Expand Down
5 changes: 4 additions & 1 deletion src/hx/sshclient/SSHClient.hx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ abstract class SSHClient {
public var compression(default, null):Bool = false;


function new() {
inline function new() {
}


public abstract function execute(cmd:String):BackgroundProcess;


public function toString():String {
@:nullSafety(Off)
return '${Type.getClassName(Type.getClass(this))}[${username}@${hostname}:${port},Secret(${secret.getName()})]';
}
}
Expand All @@ -58,6 +60,7 @@ class SSHClientBuilder<T:SSHClient, This:SSHClientBuilder<T, This>> {
inline function new() {
}


public function build():T {
if (clientBuilt)
throw "Already built!";
Expand Down

0 comments on commit c8846c9

Please sign in to comment.